This commit is contained in:
vipg
2025-11-14 15:12:44 +08:00
parent 3c2da12cd8
commit 4cdeb4b34f
3 changed files with 8 additions and 8 deletions

View File

@@ -17,9 +17,9 @@ services:
- ./sql:/docker-entrypoint-initdb.d
- ./scripts:/scripts
networks:
- country-network
- futures-trading-record-network
country:
image: country-api:1.0.0
image: futures-trading-record-api:1.0.0
container_name: country_api
restart: always
ports:
@@ -27,7 +27,7 @@ services:
depends_on:
- postgres
networks:
- country-network
- futures-trading-record-network
environment:
DB_HOST: postgres
DB_PORT: ${DB_PORT}
@@ -39,6 +39,6 @@ services:
# 挂载添加日志目录挂载,将容器内日志日志目录映射到宿主机的 ./logs 目录
- ./logs:/app/logs # 假设代码中日志存储路径为 /app/logs
networks:
country-network:
futures-trading-record-network:
driver: bridge
volumes: {}