-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
37 lines (36 loc) · 1 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
services:
pgadmin:
image: dpage/pgadmin4
depends_on:
- postgres
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-pgadmin-password}
PGADMIN_DISABLE_POSTFIX: 1
PGADMIN_LISTEN_PORT: 8080
ports:
- "18080:8080"
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./docker/compose/pgadmin/servers.json:/pgadmin4/servers.json
postgres:
image: postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres-password}
ports:
- "15432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./docker/compose/postgres/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ./docker/compose/postgres/model:/var/lib/postgresql/model
redis:
image: redis
command: redis-server --appendonly yes
ports:
- "16379:6379"
volumes:
- redis-data:/data
volumes:
pgadmin-data:
postgres-data:
redis-data: