-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
54 lines (49 loc) · 1.01 KB
/
docker-compose.yaml
File metadata and controls
54 lines (49 loc) · 1.01 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
46
47
48
49
50
51
52
53
54
version: '3.5'
networks:
net:
services:
db:
container_name: db
ports:
- "5433:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=base6
- POSTGRES_PASSWORD=5432
image: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -d base6 -U postgres -h localhost -p 5432"]
interval: 2s
timeout: 2s
retries: 5
networks:
- net
back:
container_name: back
build:
dockerfile: C:\Users\Kirill\RiderProjects\Backend\Dockerfile
ports:
- "5000:5000"
- "5001:5001"
environment:
- DB_HOST=db
- DB_NAME=base6
- DB_USER=postgres
- DB_PASSWORD=5432
- DB_PORT=5433
depends_on:
db:
condition: service_healthy
networks:
- net
front:
container_name: front
build:
dockerfile: C:\Users\Kirill\RiderProjects\Web.Client\Dockerfile
ports:
- "5050:5050"
depends_on:
back:
condition: service_started
networks:
- net