-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.42 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
63
64
65
66
67
68
69
version: '2'
services:
#
# [ server stack ]
#
# - pgadmin4
# - postgrest
# - postgraphql
# - postgres + devtools + pg_adm
#
api:
image: begriffs/postgrest:v0.4.1.0
container_name: api
links:
- dbm
volumes:
- ./postgrest.conf:/etc/postgrest.conf # use your own postgrest.conf
ports:
- "3000:3000"
networks:
- backend
depends_on:
- dbm
restart: unless-stopped
pgadmin:
image: fenglc/pgadmin4:latest
container_name: pgadmin
links:
- dbm
volumes:
- /data/pgadmin:/root/.pgadmin # pgadmin4 user and session data (SQLITE)
ports:
- "5050:5050"
networks:
- backend
depends_on:
- dbm
restart: unless-stopped
dbm:
build:
context: .
dockerfile: Dockerfile
image: benizar/pg_adm
container_name: dbm
environment:
POSTGRES_DB: db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes: # named volumes, use compose -v to remove them.
- postgres_data:/var/lib/postgresql/:rw
- postgres_backups:/backups
ports:
- "5433:5432" # redirect to 5433 in case you already have postgres installed. See postgrest.conf
networks:
- backend
restart: unless-stopped
volumes: # named volumes that can be mounted by other containers
postgres_data:
driver: local
postgres_backups:
driver: local
networks:
backend:
driver: bridge