update: 删除多余的 network 配置(开多docker网段不是一件好事)

This commit is contained in:
🐟 2023-07-08 14:56:37 +08:00
parent 0c32e14843
commit 992515e75e
2 changed files with 5 additions and 7 deletions

3
.env
View File

@ -1,8 +1,7 @@
NAME="def" NAME="def"
DOCKER_DATA_DIR_NAME="docker.data"
COMPOSE_PROJECT_NAME=$NAME COMPOSE_PROJECT_NAME=$NAME
TZ=Asia/Shanghai TZ=Asia/Shanghai
TERM=xterm-256color TERM=xterm-256color
DIR=$HOME/$DOCKER_DATA_DIR_NAME/$NAME DIR=.

View File

@ -8,18 +8,17 @@ services:
ports: ports:
- 3111-3222:3111-3222 - 3111-3222:3111-3222
networks: networks:
- apps - local
volumes: volumes:
- ${DIR}:/etc/app - ${DIR}:/etc/app
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
environment: environment:
APP_ADDRESS: 0.0.0.0:3111 APP_ADDRESS: 0.0.0.0:3111
depends_on:
- app-d
networks: networks:
app: local:
driver: bridge name: local
external: true