base-dev/docker-compose.yaml

55 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-27 01:56:02 +08:00
version: '3.5'
services:
alpine:
container_name: dev
image: alpine:dev
build:
context: ./alpine
hostname: dev
volumes:
- ${DIR}/alpine/root:/root
- ${HOME}/atcode:/root/atcode
- ${HOME}/.ssh:/root/.ssh
- ${HOME}/.zsh_history:/root/.zsh_history
- ${HOME}/.zshrc:/root/.zshrc
- ${HOME}/.alias.d:/root/.alias.d
- ${HOME}/.p10k.zsh:/root/.p10k.zsh
- ${HOME}/.oh-my-zsh:/root/.oh-my-zsh
2023-03-27 01:56:02 +08:00
networks:
- dev
command: tail -f /dev/null
restart: always
dev-super:
profiles: ["super"]
container_name: dev-super
image: super:dev
privileged: true
pid: host
build:
context: ./super
2023-03-27 01:56:02 +08:00
restart: always
networks:
- dev
go-alpine:
container_name: go-dev
image: golang-local:dev
build:
context: ./go
hostname: dev
volumes:
- ${DIR}/go/root:/root
- ${DEV_DIR}:/root/atcode
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
network_mode: host
2023-03-27 01:56:02 +08:00
command: tail -f /dev/null
restart: always
environment:
TZ:
TERM:
2023-03-27 01:56:02 +08:00
networks:
dev:
driver: bridge
name: dev