-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
46 lines (43 loc) · 960 Bytes
/
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
services:
postgres:
command: ["postgres", "-c", "log_statement=all"]
container_name: postgres
env_file: .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $POSTGRES_URL"]
interval: 10s
timeout: 5s
retries: 10
image: postgres:alpine
ports:
- "5432:5432"
volumes:
- ./pg_data:/var/lib/postgresql/data
redis:
container_name: redis
env_file: .env
image: redis/redis-stack
ports:
- "6379:6379"
- "8001:8001"
pgadmin:
configs:
- source: pgpass
target: /pgpass
- source: servers.json
target: /pgadmin4/servers.json
container_name: pgadmin
depends_on:
postgres:
condition: service_healthy
env_file: .env
image: dpage/pgadmin4
ports:
- "5050:80"
volumes:
- ./pg_admin:/var/lib/pgadmin
configs:
pgpass:
file: ./pg_config/pgpass
servers.json:
file: ./pg_config/servers.json