base-dev/docker-compose.yaml

37 lines
702 B
YAML
Raw Permalink Normal View History

2023-03-27 01:56:02 +08:00
version: '3.5'
services:
2024-12-07 18:19:01 +08:00
py-alpine:
container_name: py
image: python:3.10-alpine
2023-03-27 01:56:02 +08:00
volumes:
2024-12-07 18:19:01 +08:00
- ${DIR}/py/root:/root
- ${DEV_DIR}:/atcode
- /etc/timezone:/etc/timezone:ro
2023-03-27 01:56:02 +08:00
command: tail -f /dev/null
2024-12-07 18:19:01 +08:00
hostname: dev
2023-03-27 01:56:02 +08:00
restart: always
networks:
- dev
go-alpine:
2024-12-07 18:19:01 +08:00
container_name: go
image: golang-local:dev
build:
context: ./go
hostname: dev
volumes:
- ${DIR}/go/root:/root
2024-12-07 18:19:01 +08:00
- ${DEV_DIR}:/atcode
- /etc/timezone:/etc/timezone:ro
2024-12-07 18:19:01 +08:00
networks:
- dev
2023-03-27 01:56:02 +08:00
command: tail -f /dev/null
restart: always
environment:
TZ:
TERM:
2024-12-07 18:19:01 +08:00
2023-03-27 01:56:02 +08:00
networks:
dev:
driver: bridge
2024-12-07 18:19:01 +08:00
name: local
external: true