forked from sufyanm/ckan-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.58 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: '3'
services:
web:
image: ckan
build:
context: .
environment:
CKAN_SQLALCHEMY_URL: postgresql://ckan:ckan@postgres/ckan
CKAN_DATASTORE_WRITE_URL: postgresql://datastore:datastore@postgres/datastore
CKAN_DATASTORE_READ_URL: postgresql://datastore_ro:datastore_ro@postgres/datastore
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/0
CKAN_SITE_URL: http://localhost:8000
CKAN_BEAKER_SESSION_SECRET: test_session_secret
ports:
- 8000:8000
depends_on:
- postgres
- solr
- redis
worker:
image: ckan
build:
context: .
environment:
CKAN_SQLALCHEMY_URL: postgresql://ckan:ckan@postgres/ckan
CKAN_DATASTORE_WRITE_URL: postgresql://datastore:datastore@postgres/datastore
CKAN_DATASTORE_READ_URL: postgresql://datastore_ro:datastore_ro@postgres/datastore
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/0
CKAN_SITE_URL: http://localhost:8080
CKAN_BEAKER_SESSION_SECRET: test_session_secret
command:
- /opt/ckan/worker.sh
network_mode: service:web
depends_on:
- web
- postgres
- solr
- redis
postgres:
image: postgres:13
environment:
POSTGRES_PASSWORD: postgres
volumes:
- ./docker/postgres:/docker-entrypoint-initdb.d
solr:
image: solr:8
volumes:
- ./docker/solr/ckan:/tmp/ckan # config-set
command:
- solr-precreate
- ckan
- /tmp/ckan
redis:
image: redis:6
networks:
default:
name: ckan