-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.zaakbrug.postgres.yml
50 lines (45 loc) · 1.25 KB
/
docker-compose.zaakbrug.postgres.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
version: '3.8'
x-zaakbrug-postgres-env:
environment: &zaakbrug-postgres-env
POSTGRES_USER: zaakbrug
POSTGRES_PASSWORD: zaakbrug
POSTGRES_DB: zaakbrug
services:
zaakbrug-postgres:
image: postgres:${POSTGRES_VERSION:-14}
environment:
<<: *zaakbrug-postgres-env
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5400:5432
networks:
- zaakbrug-backend
volumes:
- zaakbrug-postgres-data:/var/lib/postgresql/data
zaakbrug-pgadmin:
profiles:
- pgadmin
image: dpage/pgadmin4:${PGADMIN_VERSION:-latest}
user: root
command: ["/venv/bin/python3", "/pgadmin4/setup.py", "--load-servers", "zaakbrug-pgadmin-conf.json", "--user", "admin@wearefrank.nl"]
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@wearefrank.nl
PGADMIN_DEFAULT_PASSWORD: admin
networks:
- zaakbrug-stack
- zaakbrug-backend
depends_on:
- zaakbrug-postgres
zaakbrug:
environment:
<<: *zaakbrug-postgres-env
DB_HOSTNAME: zaakbrug-postgres
DB_PORT: 5432
volumes:
- ./docker/zaakbrug-postgres/context.xml:/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml:rw
depends_on:
- zaakbrug-postgres
volumes:
zaakbrug-postgres-data: