-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
58 lines (53 loc) · 1.33 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
version: "3"
volumes:
ckan_storage:
pg_data:
solr_data:
services:
ckan:
container_name: ckan
image: ckan/ckan-base:2.9.5
env_file:
- .env
depends_on:
db:
condition: service_healthy
solr:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "0.0.0.0:5000:5000"
volumes:
- ckan_storage:/var/lib/ckan
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:5000"]
db:
container_name: db
image: postgres:12-alpine
environment:
- DATASTORE_READONLY_PASSWORD=datastore
- POSTGRES_PASSWORD=ckan
- PGDATA=/var/lib/postgresql/data/db
- POSTGRES_USER=ckan
volumes:
- pg_data:/var/lib/postgresql/data
- ./postgresql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
restart: unless-stopped
healthcheck:
test: ["CMD", "pg_isready", "-U", "ckan"]
solr:
container_name: solr
image: ckan/ckan-solr:2.9-solr8
volumes:
- solr_data:/var/solr
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO", "/dev/null", "http://localhost:8983/solr/"]
redis:
container_name: redis
image: redis:6
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "-e", "QUIT"]