-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
65 lines (65 loc) · 2.44 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
version: '2'
services:
nginx:
container_name : nginx
image: nginx:1.11.8
depends_on:
- ckan
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/odp.conf:/etc/nginx/conf.d/default.conf
ckan:
container_name : ckan
build: ./ckan/
entrypoint: /docker-entrypoint.sh
ports:
- "8080:8080"
volumes:
- ./data/ckan_storage:/var/lib/ckan
depends_on:
- solr
environment:
POSTGRES_HOST: "${POSTGRES_HOST}"
POSTGRES_PORT: "${POSTGRES_PORT}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DATASTORE_USER: "${POSTGRES_DATASTORE_USER}"
POSTGRES_DATASTORE_PASSWORD: "${POSTGRES_DATASTORE_PASSWORD}"
PGPASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_CKAN_DBNAME: "${POSTGRES_CKAN_DBNAME}"
POSTGRES_CKAN_DATASTORE_DBNAME: "${POSTGRES_CKAN_DATASTORE_DBNAME}"
CKAN_SQLALCHEMY_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_CKAN_DBNAME}"
CKAN_DATASTORE_WRITE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_CKAN_DATASTORE_DBNAME}"
CKAN_DATASTORE_READ_URL: "postgresql://${POSTGRES_DATASTORE_USER}:${POSTGRES_DATASTORE_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_CKAN_DATASTORE_DBNAME}"
CKAN_SITE_URL: "${CKAN_SITE_URL}"
CKAN_SITE_ID: "default"
CKAN_STORAGE_PATH: "/var/lib/ckan"
CKAN_DATAPUSHER_URL: "${CKAN_SITE_URL}:8000"
CKAN_SOLR_URL: "http://solr:8983/solr/${POSTGRES_CKAN_DBNAME}"
CKANEXT__CLOUDSTORAGE__DRIVER: "${CLOUDSTORAGE_DRIVER}"
CKANEXT__CLOUDSTORAGE__CONTAINER_NAME: "${CLOUDSTORAGE_NAME}"
CKANEXT__CLOUDSTORAGE__DRIVER_OPTIONS: "${CLOUDSTORAGE_OPTIONS}"
SOLR_URL: "http://solr:8983/solr/${POSTGRES_CKAN_DBNAME}"
EMAIL_TO: "${EMAIL_TO}"
ERROR_EMAIL_FROM: "${ERROR_EMAIL_FROM}"
CKAN_SMTP_SERVER: "${CKAN_SMTP_SERVER}"
CKAN_SMTP_STARTTLS: "${CKAN_SMTP_STARTTLS}"
CKAN_SMTP_USER: "${CKAN_SMTP_USER}"
CKAN_SMTP_PASSWORD: "${CKAN_SMTP_PASSWORD}"
CKAN_SMTP_MAIL_FROM: "${CKAN_SMTP_MAIL_FROM}"
datapusher:
container_name: ckan_datapusher
build: ./datapusher/
ports:
- "8000:8000"
depends_on:
- ckan
environment:
SERVER_NAME: "${CKAN_SITE_URL}"
solr:
container_name : solr
image: ckan/solr:dev-v2.6
ports:
- "8983:8983"