2
0

fix: 调整docke脚本

This commit is contained in:
TsMask
2024-12-03 17:51:18 +08:00
parent 8da56d1d09
commit 64aec35014
7 changed files with 58 additions and 35 deletions

View File

@@ -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