fix: use host network for Docker build, remove obsolete version

Build stage uses network: host so pip can resolve DNS through host.
Removed version: "3.9" (obsolete warning).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hailin 2026-04-05 00:47:31 -07:00
parent 6e7a80466c
commit eb04d7da3b
1 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,3 @@
version: "3.9"
services: services:
postgres: postgres:
image: postgres:16-alpine image: postgres:16-alpine
@ -20,6 +18,7 @@ services:
build: build:
context: . context: .
dockerfile: services/data-service/Dockerfile dockerfile: services/data-service/Dockerfile
network: host
ports: ports:
- "8001:8000" - "8001:8000"
environment: environment:
@ -32,6 +31,7 @@ services:
build: build:
context: . context: .
dockerfile: services/chart-service/Dockerfile dockerfile: services/chart-service/Dockerfile
network: host
ports: ports:
- "8002:8000" - "8002:8000"
environment: environment:
@ -47,6 +47,7 @@ services:
build: build:
context: . context: .
dockerfile: services/template-service/Dockerfile dockerfile: services/template-service/Dockerfile
network: host
ports: ports:
- "8003:8000" - "8003:8000"
environment: environment:
@ -59,6 +60,7 @@ services:
build: build:
context: . context: .
dockerfile: services/export-service/Dockerfile dockerfile: services/export-service/Dockerfile
network: host
ports: ports:
- "8004:8000" - "8004:8000"
environment: environment: