优化docker-compose的配置文件

This commit is contained in:
SliverHorn
2020-10-06 12:00:13 +08:00
parent ad504a17e0
commit 07c6bbd7e1
5 changed files with 15 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ services:
container_name: gva-web
restart: always
ports:
- '8000:8000'
- '8080:8080'
depends_on:
- server
command: [ 'nginx-debug', '-g', 'daemon off;' ]
@@ -34,6 +34,9 @@ services:
depends_on:
- mysql
- redis
links:
- mysql
- redis
networks:
network:
ipv4_address: 177.7.0.12
@@ -57,7 +60,7 @@ services:
container_name: gva-redis # 容器名
restart: always
ports:
- '6379:6379'
- '16379:6379'
networks:
network:
ipv4_address: 177.7.0.14