-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose-test.yaml
100 lines (92 loc) · 2.41 KB
/
docker-compose-test.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
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
version: '3.9'
services:
# Our custom django application. It includes Geonode.
django:
build:
context: .
dockerfile: Dockerfile
container_name: django4importer
healthcheck:
test: "curl -m 10 --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://django:8000/"
start_period: 60s
interval: 60s
timeout: 10s
retries: 2
environment:
- IS_CELERY=False
command: 'sleep infinity'
depends_on:
db:
condition: service_healthy
env_file:
- .env_test
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- data:/data
- tmp:/tmp
- .:/usr/src/importer
# Geoserver backend
geoserver:
image: geonode/geoserver:2.24.3-latest
container_name: geoserver4importer
healthcheck:
test: "curl -m 10 --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://geoserver:8080/geoserver/ows"
start_period: 60s
interval: 20s
timeout: 10s
retries: 5
env_file:
- .env_test
volumes:
- statics:/mnt/volumes/statics
- geoserver-data-dir:/geoserver_data/data
- data:/data
- tmp:/tmp
restart: unless-stopped
depends_on:
data-dir-conf:
condition: service_healthy
data-dir-conf:
image: geonode/geoserver_data:2.24.3-latest
container_name: gsconf4importer
entrypoint: sleep infinity
volumes:
- geoserver-data-dir:/geoserver_data/data
restart: unless-stopped
healthcheck:
test: "ls -A '/geoserver_data/data' | wc -l"
# PostGIS database.
db:
# use geonode official postgis 15 image
image: geonode/postgis:15
command: postgres -c "max_connections=100"
container_name: db4importer
env_file:
- .env_test
volumes:
- dbdata:/var/lib/postgresql/data
- dbbackups:/pg_backups
restart: unless-stopped
healthcheck:
test: "pg_isready -d postgres -U postgres"
# uncomment to enable remote connections to postgres
volumes:
statics:
name: importer-statics
nginx-confd:
name: importer-nginxconfd
nginx-certificates:
name: importer-nginxcerts
geoserver-data-dir:
name: importer-gsdatadir
dbdata:
name: importer-dbdata
dbbackups:
name: importer-dbbackups
data:
name: importer-data
tmp:
name: importer-tmp
rabbitmq:
name: importer-rabbitmq