forked from osm-fr/podoma
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
81 lines (76 loc) · 1.68 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
pgsqldb:
image: camptocamp/postgres:16-postgis-3
restart: always
networks:
- oim-internal
ports:
- "5432:5432"
volumes:
- db-data:/var/lib/postgresql/data
- ./db/00_init_postgis.sql:/docker-entrypoint-initdb.d/00_init_postgis.sql
environment:
- POSTGRES_DB=pdm
- POSTGRES_PASSWORD=pgpassword
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 1s
retries: 5
pdm:
image: pdm/server:latest
build:
context: .
restart: always
depends_on:
- pgsqldb
networks:
- oim-internal
ports:
- "3000:3000"
volumes:
- pdm-data:/data/files/pdm
- workdir:/tmp/pdm
environment:
- DB_URL=postgres://postgres:pgpassword@pgsqldb:5432/pdm
command: "run"
pdm-tileserv:
image: pramsey/pg_tileserv:latest
restart: always
depends_on:
- pgsqldb
networks:
- oim-internal
ports:
- "7800:7800"
environment:
- DATABASE_URL=postgres://postgres:pgpassword@pgsqldb:5432/pdm
pgadmin:
image: dpage/pgadmin4:9.12
restart: unless-stopped
profiles:
- pgadmin
depends_on:
- pgsqldb
networks:
- oim-internal
ports:
- "8000:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
- ./db/pgadmin_init.json:/pgadmin4/servers.json
environment:
PGADMIN_DEFAULT_EMAIL: "app@app.app"
PGADMIN_DEFAULT_PASSWORD: "app"
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://localhost:80/misc/ping"]
interval: 20s
timeout: 1s
retries: 5
volumes:
db-data:
pdm-data:
workdir:
pgadmin-data:
networks:
oim-internal: