-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (42 loc) · 1.02 KB
/
docker-compose.yaml
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
version: '3.4'
services:
frontend:
build:
context: ./
dockerfile: ./frontend/Dockerfile
networks:
- dev
ports:
- "32000:5000"
depends_on:
- backend
backend:
build:
context: ./
dockerfile: ./backend/Dockerfile
environment:
- ConnectionStrings__DefaultConnection=User ID=postgres;Password=postgres;Server=postgres_db;Port=5432;Database=ToDoTasks;Pooling=true;
ports:
- "32001:5001"
networks:
- dev
depends_on:
- postgres_db
postgres_db:
container_name: postgres_db
image: postgres:latest
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=ToDoTasks
ports:
- "5432:5432"
restart: always
volumes:
- app_data:/var/lib/postgresql/data
networks:
- dev
volumes:
app_data:
networks:
dev: