feat: update

This commit is contained in:
liuyx 2024-12-07 18:19:01 +08:00
parent 6a7d0e7ebb
commit 5970ff5ec6
2 changed files with 15 additions and 33 deletions

2
.env
View File

@ -2,4 +2,4 @@ COMPOSE_PROJECT_NAME=dev
DIR=.
DEV_DIR=/data/xx/
DEV_DIR=$HOME/atcode/

View File

@ -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
name: local
external: true