forked from CDCgov/dibbs-ecr-refiner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
45 lines (45 loc) · 1.12 KB
/
docker-compose.yaml
File metadata and controls
45 lines (45 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
client:
image: node:20-alpine3.20
working_dir: /app
volumes:
- ./client:/app
command: sh -c "npm i && npm run dev"
ports:
- "8081:8081"
depends_on:
- refiner-service
refiner-service:
image: python:3.13-slim
platform: linux/amd64
command: sh -c "pip install -r requirements.txt && uvicorn app.main:app --host 0.0.0.0 --port 8080 --reload"
working_dir: /app
volumes:
- ./refiner:/app
ports:
- "8080:8080"
environment:
- PIP_ROOT_USER_ACTION=ignore
- DB_URL=postgresql://postgres:refiner@db:5432/refiner
logging:
driver: "json-file"
db:
image: postgres:alpine
restart: on-failure
user: postgres
environment:
- POSTGRES_DB=refiner
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=refiner
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
volumes:
- ./refiner/tests/integration/seeding/seed-data.sql:/docker-entrypoint-initdb.d/seed-data.sql
- pgdata:/var/lib/postgresql/data
volumes:
pgdata: