-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (75 loc) · 1.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
80 lines (75 loc) · 1.97 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
services:
ckan:
build:
context: .
dockerfile: Dockerfile.dev
platform: linux/amd64
ports:
- "5000:5000"
environment:
CKAN_SQLALCHEMY_URL: postgresql://ckan:ckan@db/ckan
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/0
CKAN_SITE_URL: http://localhost:5000
CKAN_SITE_ID: default
CKAN___BEAKER__SESSION__SECRET: local-dev-secret-change-me
CKAN__PLUGINS: "image_view text_view datatables_view envvars"
volumes:
- ckan_storage:/var/lib/ckan
- ./ckan_style.css:/srv/app/src/ckan/ckan/public/base/css/custom.css:ro
depends_on:
db:
condition: service_healthy
solr:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/3/action/status_show"]
interval: 15s
timeout: 10s
retries: 10
start_period: 90s
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: ckan
POSTGRES_PASSWORD: ckan
POSTGRES_DB: ckan
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ckan"]
interval: 5s
timeout: 5s
retries: 5
solr-init:
image: ckan/ckan-solr:2.11-solr9
user: "0:0"
entrypoint: ["/bin/bash", "-c", "chown -R 8983:8983 /var/solr/data"]
volumes:
- solr_data:/var/solr/data
solr:
image: ckan/ckan-solr:2.11-solr9
volumes:
- solr_data:/var/solr/data
depends_on:
solr-init:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8983/solr/ckan/admin/ping"]
interval: 10s
timeout: 5s
retries: 10
start_period: 60s
redis:
image: redis:7-alpine
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
volumes:
ckan_storage:
pg_data:
solr_data: