-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.99 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
version: '3'
services:
ckan:
build:
context: .
args:
- CKAN_VERSION=2.9.5
- S3_FILESTORE_VERSION=develop
depends_on:
solr:
condition: service_started
datapusher:
condition: service_started
redis:
condition: service_started
minio:
condition: service_started
postgis:
condition: service_healthy
environment:
POSTGRES_READ_HOST: postgis
POSTGRES_WRITE_HOST: postgis
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_DATASTORE_DB: ${POSTGRES_DATASTORE_DB}
CKAN_SITE_ID: ckan
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/1
CKAN_SITE_URL: http://localhost:5000
CKAN_MAX_UPLOAD_SIZE_MB: 100
S3_BUCKET_NAME: ckan
S3_REGION: us-east-1
S3_ACCESS_KEY_ID: minioadmin
S3_SECRET_ACCESS_KEY: minioadmin
MINIO_PATH: http://minio:9000
RUN_INIT_DB: 1
DATAPUSHER_CALLBACK_URL: http://ckan:5000
CKAN_DATAPUSHER_URL: http://datapusher:8800
# REBUILD_SOLR_SEARCH_INDEX: 1
ports:
- 5000:5000
postgis:
image: postgis/postgis
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_DATASTORE_DB: ${POSTGRES_DATASTORE_DB}
volumes:
- ./initdb:/docker-entrypoint-initdb.d:ro
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "ckan"]
interval: 10s
timeout: 5s
retries: 5
datapusher:
image: ghcr.io/georepublic/datapusher:latest
environment:
CKAN_HOSTNAME: ckan:5000
DEBUG: 1
TESTING: 1
solr:
image: ckan/ckan-solr:2.9-solr8
redis:
image: redis
minio:
image: minio/minio
command: ["server", "/data", "--console-address", ":9001"]
environment:
MINIO_SERVER_URL: http://localhost:9000
ports:
- 9000:9000
- 9001:9001