-
Notifications
You must be signed in to change notification settings - Fork 1
/
backend.yaml
50 lines (46 loc) · 1.14 KB
/
backend.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
47
48
49
50
services:
pghero:
image: ankane/pghero:v3.3.3
profiles:
- admin
environment:
DATABASE_URL: postgres://pghero@haf:5432/haf_block_log
RAILS_RELATIVE_URL_ROOT: /admin/pghero
networks:
- haf-network
init: true
depends_on:
haf:
condition: service_healthy
pgadmin:
image: dpage/pgadmin4:${PGADMIN_VERSION:-8.10}
profiles:
- admin
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "admin"
networks:
- haf-network
init: true
volumes:
- type: volume
source: pgadmin_data
target: /var/lib/pgadmin
configs:
- source: pgadmin_servers
target: /pgadmin4/servers.json
#uid: "5050"
#gid: "5050"
- source: pgadmin_passwords
target: /pgadmin4/pgpass
#uid: "5050"
#gid: "5050"
configs:
# this config pre-loads the haf database server into pgadmin so you don't have to add it by hand
pgadmin_servers:
file: ./pgadmin/servers.json
pgadmin_passwords:
file: ./pgadmin/pgpass
volumes:
# this volume stores your pgadmin state
pgadmin_data: