forked from ckan/ckan-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·103 lines (93 loc) · 2.18 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
version: "3"
volumes:
solr_data:
tiles_data:
services:
ckan:
container_name: ${CKAN_CONTAINER_NAME}
build:
context: ckan/
dockerfile: Dockerfile
args:
- TZ=${TZ}
- CKAN_VERSION=2.10.3
networks:
- ckannet
- solrnet
- redisnet
env_file:
- .env
depends_on:
solr:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "0.0.0.0:${CKAN_PORT_HOST}:${CKAN_PORT}"
volumes:
- /data/ckan:/var/lib/ckan
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
datapusher-plus:
container_name: ${DATAPUSHER_CONTAINER_NAME}
build:
context: ./datapusher-plus
dockerfile: Dockerfile
ports:
- "0.0.0.0:${DATAPUSHER_PORT_HOST}:8800"
networks:
- ckannet
links:
- ckan
depends_on:
- ckan
environment:
- DATASTORE_DB
- DATAPUSHER_PASSWORD
- DATAPUSHER_JOBS_PASSWORD
env_file:
- ./datapusher-plus/.env
restart: unless-stopped
healthcheck:
test: [ "CMD", "wget", "-qO", "/dev/null", "http://localhost:8800" ]
solr:
container_name: ${SOLR_CONTAINER_NAME}
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:
container_name: ${REDIS_CONTAINER_NAME}
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/x86_64
networks:
- ckannet
restart: unless-stopped
volumes:
- /data/tiles:/tiles
ports:
- "0.0.0.0:${MARTIN_PORT_HOST}:3000"
environment:
- "DATABASE_URL=${CKAN_DATASTORE_READ_URL}"
healthcheck:
test: [ "CMD", "wget", "-qO", "/dev/null", "http://localhost:3000/solr/" ]
networks:
ckannet:
solrnet:
internal: true
redisnet:
internal: true