generated from wearefrank/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.frank.postgres.yaml
46 lines (42 loc) · 1.2 KB
/
docker-compose.frank.postgres.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
x-frank-postgres-env:
environment: &frank-postgres-env
POSTGRES_USER: frank
POSTGRES_PASSWORD: frank
POSTGRES_DB: frank
services:
frank-postgres:
image: postgres:${POSTGRES_VERSION:-14}
environment:
<<: *frank-postgres-env
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5400:5432"
volumes:
- frank-postgres-data:/var/lib/postgresql/data
frank-pgadmin:
profiles:
- pgadmin
image: dpage/pgadmin4:${PGADMIN_VERSION:-latest}
user: root
command: ["/venv/bin/python3", "/pgadmin4/setup.py", "--load-servers", "frank-pgadmin-conf.json", "--user", "admin@wearefrank.nl"]
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@wearefrank.nl
PGADMIN_DEFAULT_PASSWORD: admin
volumes:
- ./docker/frank-postgres-pgadmin/frank-pgadmin-conf.json:/frank-pgadmin-conf.json
depends_on:
- frank-postgres
frank:
environment:
<<: *frank-postgres-env
jdbc.datasource.default: jdbc/openforms2xxllnc-postgresql
jdbc.hostname: frank-postgres
jdbc.port: 5432
jdbc.tcpKeepAlive: true
jdbc.database: frank
depends_on:
- frank-postgres
volumes:
frank-postgres-data: