add
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17.4-alpine
|
||||
container_name: futures_trading_record_db
|
||||
container_name: futures_trade_record_db
|
||||
restart: always
|
||||
ports:
|
||||
- 20011:5432
|
||||
@@ -13,21 +13,21 @@ services:
|
||||
POSTGRES_DB: ${DB_NAME}
|
||||
TZ: ${TZ}
|
||||
volumes:
|
||||
- ./shared_data/futures_trading_record_db:/var/lib/postgresql/data
|
||||
- ./shared_data/futures_trade_record_db:/var/lib/postgresql/data
|
||||
- ./sql:/docker-entrypoint-initdb.d
|
||||
- ./scripts:/scripts
|
||||
networks:
|
||||
- futures-trading-record-network
|
||||
futures_trading_record:
|
||||
image: futures-trading-record-api:1.0.0
|
||||
container_name: futures_trading_record_api
|
||||
- futures-trade-record-network
|
||||
futures_trade_record:
|
||||
image: futures-trade-record-api:1.0.0
|
||||
container_name: futures_trade_record_api
|
||||
restart: always
|
||||
ports:
|
||||
- 20010:80
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
- futures-trading-record-network
|
||||
- futures-trade-record-network
|
||||
environment:
|
||||
DB_HOST: postgres
|
||||
DB_PORT: ${DB_PORT}
|
||||
@@ -39,6 +39,6 @@ services:
|
||||
# 挂载添加日志目录挂载,将容器内日志日志目录映射到宿主机的 ./logs 目录
|
||||
- ./logs:/app/logs # 假设代码中日志存储路径为 /app/logs
|
||||
networks:
|
||||
futures-trading-record-network:
|
||||
futures-trade-record-network:
|
||||
driver: bridge
|
||||
volumes: {}
|
||||
|
||||
Reference in New Issue
Block a user