forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·83 lines (76 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
executable file
·83 lines (76 loc) · 1.76 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
82
83
volumes:
ckan_storage:
solr_data:
pip_cache:
site_packages:
tiles_data:
home_dir:
services:
ckan:
build:
context: ckan/
dockerfile: Dockerfile
args:
- TZ=${TZ}
platform: linux/amd64
networks:
- ckannet
- solrnet
- redisnet
env_file:
- .env
ports:
- "0.0.0.0:${CKAN_PORT_HOST}:5000"
depends_on:
solr:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- home_dir:/srv/app/
- /data/ckan:/var/lib/ckan
- pip_cache:/root/.cache/pip
- site_packages:/usr/lib/python3.10/site-packages
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000/api/action/status_show"]
interval: 60s
timeout: 10s
retries: 3
solr:
networks:
- solrnet
image: ckan/ckan-solr:${SOLR_IMAGE_VERSION}
volumes:
- solr_data:/var/solr
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]
redis:
image: redis:${REDIS_VERSION}
networks:
- redisnet
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-e", "QUIT"]
tiles:
container_name: ${MARTIN_CONTAINER_NAME}
build:
context: martin/
platform: linux/amd64
restart: unless-stopped
volumes:
- tiles_data:/tiles
ports:
- "0.0.0.0:${MARTIN_PORT_HOST}:3000"
environment:
- "DATABASE_URL=${CKAN_DATASTORE_READ_URL}"
- "MAPS_DATABASE_URL=${MAPS_DATABASE_URL}"
healthcheck:
test: [ "CMD", "wget", "-qO", "/dev/null", "http://localhost:3000/solr/" ]
networks:
ckannet:
solrnet:
internal: true
redisnet:
internal: true