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=. DIR=.
DEV_DIR=/data/xx/ DEV_DIR=$HOME/atcode/

View File

@ -1,55 +1,37 @@
version: '3.5' version: '3.5'
services: services:
alpine: py-alpine:
container_name: dev container_name: py
image: alpine:dev image: python:3.10-alpine
build:
context: ./alpine
hostname: dev
volumes: volumes:
- ${DIR}/alpine/root:/root - ${DIR}/py/root:/root
- ${HOME}/atcode:/root/atcode - ${DEV_DIR}:/atcode
- ${HOME}/.ssh:/root/.ssh - /etc/timezone:/etc/timezone:ro
- ${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
command: tail -f /dev/null command: tail -f /dev/null
restart: always hostname: dev
dev-super:
profiles: ["super"]
container_name: dev-super
image: super:dev
privileged: true
pid: host
build:
context: ./super
restart: always restart: always
networks: networks:
- dev - dev
go-alpine: go-alpine:
container_name: go-dev container_name: go
image: golang-local:dev image: golang-local:dev
build: build:
context: ./go context: ./go
hostname: dev hostname: dev
volumes: volumes:
- ${DIR}/go/root:/root - ${DIR}/go/root:/root
- ${DEV_DIR}:/root/atcode - ${DEV_DIR}:/atcode
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro networks:
network_mode: host - dev
command: tail -f /dev/null command: tail -f /dev/null
restart: always restart: always
environment: environment:
TZ: TZ:
TERM: TERM:
networks: networks:
dev: dev:
driver: bridge driver: bridge
name: dev name: local
external: true