-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
53 lines (50 loc) · 891 Bytes
/
docker-compose.yml
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
46
47
48
49
50
51
52
53
version: '3.9'
services:
api:
build:
context: .
dockerfile: docker/Dockerfile.api
depends_on:
- db
ports:
- "80:80"
command:
[
"uvicorn",
"--host",
"0.0.0.0",
"--port",
"80",
"src.api.main:app",
"--reload",
]
networks:
- app-net
app:
build:
context: .
dockerfile: docker/Dockerfile.app
environment:
POSTGRES_HOST: 'host.docker.internal'
networks:
- app-net
volumes:
- ./csv:/csv
db:
container_name: db
image: postgres:14-alpine
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
networks:
- app-net
networks:
app-net:
driver: bridge
volumes:
pgdata: