-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackend.yaml
More file actions
64 lines (60 loc) · 1.52 KB
/
backend.yaml
File metadata and controls
64 lines (60 loc) · 1.52 KB
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
services:
pghero:
image: ankane/pghero:v3.6.2
profiles:
- admin
- database-admin
environment:
DATABASE_URL: postgres://pghero@haf:5432/haf_block_log
RAILS_RELATIVE_URL_ROOT: /admin/pghero
healthcheck:
test: ["CMD-SHELL", "nc -z 127.0.0.1 8080 || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
networks:
- haf-network
init: true
depends_on:
haf:
condition: service_healthy
pgadmin:
image: dpage/pgadmin4:${PGADMIN_VERSION:-9.8.0}
profiles:
- admin
- database-admin
environment:
PGADMIN_DEFAULT_EMAIL: "admin@haf.world"
PGADMIN_DEFAULT_PASSWORD: "admin"
healthcheck:
test: ["CMD-SHELL", "wget --timeout=2 -nv -t1 --spider 127.0.0.1/misc/ping || exit 1"]
interval: 10s
timeout: 3s
retries: 10
start_period: 1m
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: