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,7 +17,7 @@ services:
- ./sql:/docker-entrypoint-initdb.d
- ./scripts:/scripts
networks:
- country-network
- futures-trading-record-network
country:
image: golang:1.25.0-alpine3.22
container_name: country_api
@@ -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:
- ./src:/app
command: sh -c "cd /app && go mod tidy && go run main.go"
networks:
country-network:
futures-trading-record-network:
driver: bridge
volumes: {}