diff --git a/.env b/.env index 5d17995..42c4c40 100644 --- a/.env +++ b/.env @@ -2,4 +2,4 @@ COMPOSE_PROJECT_NAME=dev DIR=. -DEV_DIR=/data/xx/ \ No newline at end of file +DEV_DIR=$HOME/atcode/ \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index e9e4604..fc369c3 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,55 +1,37 @@ version: '3.5' services: - alpine: - container_name: dev - image: alpine:dev - build: - context: ./alpine - hostname: dev + py-alpine: + container_name: py + image: python:3.10-alpine 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 - networks: - - dev + - ${DIR}/py/root:/root + - ${DEV_DIR}:/atcode + - /etc/timezone:/etc/timezone:ro 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 + hostname: dev restart: always networks: - dev go-alpine: - container_name: go-dev + container_name: go image: golang-local:dev build: context: ./go hostname: dev volumes: - ${DIR}/go/root:/root - - ${DEV_DIR}:/root/atcode + - ${DEV_DIR}:/atcode - /etc/timezone:/etc/timezone:ro - - /etc/localtime:/etc/localtime:ro - network_mode: host + networks: + - dev command: tail -f /dev/null restart: always environment: TZ: TERM: + networks: dev: driver: bridge - name: dev \ No newline at end of file + name: local + external: true \ No newline at end of file