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
|
2023-04-18 11:30:56 +08:00
|
|
|
go-alpine:
|
2024-12-07 18:19:01 +08:00
|
|
|
container_name: go
|
2023-04-18 11:30:56 +08:00
|
|
|
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
|
2023-04-18 11:30:56 +08:00
|
|
|
- /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
|
2023-04-18 11:30:56 +08:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
TZ:
|
|
|
|
TERM:
|
2024-12-07 18:19:01 +08:00
|
|
|
|
2023-03-27 01:56:02 +08:00
|
|
|
networks:
|
|
|
|
dev:
|
2023-04-18 11:30:56 +08:00
|
|
|
driver: bridge
|
2024-12-07 18:19:01 +08:00
|
|
|
name: local
|
|
|
|
external: true
|