forked from maplibre/martin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (111 loc) · 3.45 KB
/
docker-compose.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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
services:
fileserver:
image: nginx:alpine
restart: unless-stopped
ports:
- '5412:80'
volumes:
- ./tests/fixtures/pmtiles2:/usr/share/nginx/html
db-is-ready:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:14-3.3-alpine
network_mode: host
command:
- 'sh'
- '-c'
- 'until pg_isready -h localhost -p ${PGPORT:-5411} -U postgres; do sleep 1; done'
restart: 'no'
environment:
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
- PGHOST=localhost
- PGPORT=${PGPORT:-5411}
db:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:14-3.3-alpine
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
db-ssl:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:15-3.3
command:
- 'postgres'
- '-c'
- 'ssl=on'
- '-c'
- 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem'
- '-c'
- 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key'
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc-ssl.sh:/docker-entrypoint-initdb.d/10_martin.sh
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
db-ssl-cert:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:15-3.3
command:
- 'postgres'
- '-c'
- 'ssl=on'
- '-c'
- 'ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem'
- '-c'
- 'ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key'
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc-ssl-cert.sh:/docker-entrypoint-initdb.d/10_martin.sh
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh
db-legacy:
# This should match the version of postgres used in the CI workflow
image: postgis/postgis:11-3.0-alpine
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
environment:
- POSTGRES_DB=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATABASE=db
- PGUSER=postgres
- PGPASSWORD=postgres
volumes:
- ./tests/fixtures:/fixtures
- ./tests/fixtures/initdb-dc.sh:/docker-entrypoint-initdb.d/20_martin.sh