37 lines
702 B
YAML
37 lines
702 B
YAML
version: '3.5'
|
|
services:
|
|
py-alpine:
|
|
container_name: py
|
|
image: python:3.10-alpine
|
|
volumes:
|
|
- ${DIR}/py/root:/root
|
|
- ${DEV_DIR}:/atcode
|
|
- /etc/timezone:/etc/timezone:ro
|
|
command: tail -f /dev/null
|
|
hostname: dev
|
|
restart: always
|
|
networks:
|
|
- dev
|
|
go-alpine:
|
|
container_name: go
|
|
image: golang-local:dev
|
|
build:
|
|
context: ./go
|
|
hostname: dev
|
|
volumes:
|
|
- ${DIR}/go/root:/root
|
|
- ${DEV_DIR}:/atcode
|
|
- /etc/timezone:/etc/timezone:ro
|
|
networks:
|
|
- dev
|
|
command: tail -f /dev/null
|
|
restart: always
|
|
environment:
|
|
TZ:
|
|
TERM:
|
|
|
|
networks:
|
|
dev:
|
|
driver: bridge
|
|
name: local
|
|
external: true |