-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (60 loc) · 1.25 KB
/
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
54
55
56
57
58
59
60
61
62
version: '3.8'
services:
postgres:
image: postgres:13.3
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: championsclub123
POSTGRES_DB: postgres
networks:
senpaislist-network:
aliases:
- postgres
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:5.3
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: postgres@email.com
PGADMIN_DEFAULT_PASSWORD: championsclub123
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
senpaislist-network:
aliases:
- pgadmin
links:
- "postgres:pgsql-server"
backend:
build:
context: .
target: ${APP_ENV:-development}
ports:
- "5001:5001"
volumes:
- "./:/app"
networks:
senpaislist-network:
aliases:
- backend
depends_on:
postgres:
condition: service_healthy
volumes:
db_data:
pgadmin-data:
networks:
senpaislist-network:
external: true