forked from borys25ol/fastapi-react-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 870 Bytes
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
version: '3.8'
services:
app:
container_name: fastapi-todo-server-local
build:
context: .
dockerfile: ./services/api/Dockerfile
ports:
- 5000:5000
environment:
- POSTGRES_HOST=db
- POSTGRES_PORT=5432
depends_on:
- db
db:
container_name: postgres-db-local
build:
context: .
dockerfile: ./services/db/Dockerfile
restart: always
ports:
- 5432:5432
environment:
- POSTGRES_DB=tododb
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data_local:/var/lib/postgresql/data/
client:
image: borysol25/react-todo-frontend
container_name: react-todo-client-local
ports:
- 3000:80
environment:
- REACT_APP_BASE_API_URL=http://0.0.0.0:5000
depends_on:
- app
volumes:
postgres_data_local: