2
0

优化部署配置

This commit is contained in:
2025-12-20 19:00:20 +08:00
parent da82f77082
commit e2b5608fc5
6 changed files with 1109 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
name: lanhu-prod
name: lanhu
services:
postgres:
@@ -8,7 +8,7 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
ports:
- "localhost:${DB_PORT}:{DB_PORT}"
- "127.0.0.1:${DB_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
@@ -19,7 +19,7 @@ services:
redis:
image: redis:7.4
ports:
- "localhost:${REDIS_PORT}:{REDIS_PORT}"
- "127.0.0.1:${REDIS_PORT}:6379"
volumes:
- redis_data:/data
restart: unless-stopped
@@ -27,24 +27,28 @@ services:
driver: local
platform:
image: ghcr.io/wyongk/juip-proxy-back:main
image: 43.226.58.254:53000/zxf/lanhu-platform:latest
env_file:
- .env
- .env.platform
depends_on:
- postgres
- redis
ports:
- "127.0.0.1:${PLATFORM_PORT}:8080"
restart: unless-stopped
logging:
driver: local
web:
image: ghcr.io/wyongk/juip-proxy-react:main
image: 43.226.58.254:53000/wmp/lanhu-web:latest
env_file:
- .env
- .env.web
depends_on:
- platform
ports:
- "127.0.0.1:${WEB_PORT}:3000"
restart: unless-stopped
logging:
driver: local