feat: 添加 Nginx 反向代理並統一容器名稱為 star-erp
This commit is contained in:
13
compose.yaml
13
compose.yaml
@@ -11,7 +11,7 @@ services:
|
||||
extra_hosts:
|
||||
- 'host.docker.internal:host-gateway'
|
||||
ports:
|
||||
- '${APP_PORT:-80}:80'
|
||||
- '${APP_PORT:-8080}:80'
|
||||
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
|
||||
environment:
|
||||
WWWUSER: '${WWWUSER}'
|
||||
@@ -71,6 +71,17 @@ services:
|
||||
- ping
|
||||
retries: 3
|
||||
timeout: 5s
|
||||
proxy:
|
||||
image: 'nginx:alpine'
|
||||
container_name: star-erp-proxy
|
||||
ports:
|
||||
- '80:80'
|
||||
volumes:
|
||||
- './nginx/demo-proxy.conf:/etc/nginx/conf.d/default.conf:ro'
|
||||
networks:
|
||||
- sail
|
||||
depends_on:
|
||||
- laravel.test
|
||||
# mailpit:
|
||||
# image: 'axllent/mailpit:latest'
|
||||
# ports:
|
||||
|
||||
Reference in New Issue
Block a user