refactor: 根據環境資訊還原容器名稱並維持多檔案 Compose 結構
Some checks failed
ERP-Deploy-Production / deploy-production (push) Has been cancelled
ERP-Deploy-Demo / deploy-demo (push) Has been cancelled

This commit is contained in:
2026-02-23 17:20:44 +08:00
parent 54e1e5df5a
commit cd0f454c98
4 changed files with 12 additions and 21 deletions

View File

@@ -6,7 +6,8 @@ services:
args:
WWWGROUP: '${WWWGROUP}'
image: 'sail-8.5/app'
hostname: star-erp-laravel
container_name: laravel
hostname: laravel
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
@@ -28,7 +29,8 @@ services:
# - mailpit
mysql:
image: 'mysql/mysql-server:8.0'
hostname: star-erp-mysql
container_name: mysql
hostname: mysql
ports:
- '${FORWARD_DB_PORT:-3306}:3306'
environment:
@@ -54,7 +56,8 @@ services:
timeout: 5s
redis:
image: 'redis:alpine'
hostname: star-erp-redis
container_name: redis
hostname: redis
# ports:
# - '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
@@ -70,6 +73,8 @@ services:
timeout: 5s
proxy:
image: 'nginx:alpine'
container_name: star-erp-proxy
container_name: star-erp-proxy
networks:
- sail
depends_on: