-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (47 loc) · 901 Bytes
/
docker-compose.yml
File metadata and controls
52 lines (47 loc) · 901 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
44
45
46
47
48
49
50
51
52
version: '3.8'
services:
backend:
build:
context: .
dockerfile: backend/Dockerfile
volumes:
- ./backend:/backend
- /backend/.venv
ports:
- 80:8000
networks:
- network-backend
env_file:
- .env
depends_on:
db_postgres:
condition: service_healthy
db_postgres:
image: postgres:15.3
expose:
- 5432
networks:
- network-backend
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d db-postgres"]
interval: 5s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:latest
container_name: pgadmin-dev
networks:
- network-backend
env_file:
- .env
ports:
- "5050:5050"
depends_on:
- db_postgres
restart: always
networks:
network-backend:
name: network-backend
driver: bridge