update: 删除多余的 network 配置(开多docker网段不是一件好事)
This commit is contained in:
parent
0c32e14843
commit
992515e75e
3
.env
3
.env
@ -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=.
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user