fix: 调整docke脚本
This commit is contained in:
@@ -48,22 +48,7 @@ services:
|
||||
- ./redis/conf/redis.conf:/home/wfc/redis/redis.conf
|
||||
- ./redis/data:/data
|
||||
command: redis-server /home/wfc/redis/redis.conf
|
||||
wfc-nginx:
|
||||
container_name: wfc-nginx
|
||||
image: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html/dist:/home/wfc/portal
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
depends_on:
|
||||
- wfc-gateway
|
||||
links:
|
||||
- wfc-gateway
|
||||
|
||||
wfc-gateway:
|
||||
container_name: wfc-gateway
|
||||
build:
|
||||
@@ -161,3 +146,20 @@ services:
|
||||
dockerfile: dockerfile
|
||||
ports:
|
||||
- "9100:9100"
|
||||
|
||||
wfc-nginx:
|
||||
container_name: wfc-nginx
|
||||
image: nginx
|
||||
build:
|
||||
context: ./nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html:/home/wfc/portal
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
depends_on:
|
||||
- wfc-gateway
|
||||
links:
|
||||
- wfc-gateway
|
||||
|
||||
Reference in New Issue
Block a user