优化部署配置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user