-
Notifications
You must be signed in to change notification settings - Fork 2k
/
docker-compose.yml
48 lines (48 loc) · 1.24 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
# docker-compose build && docker-compose up
# If you experience problems with the CKAN container not being
# able to connect to the DB, then most likely the DB has not
# started up quickly enough. Just do "docker-compose up ckan"
# again to retry
version: "3"
services:
ckan:
container_name: ckan
build:
context: ../../
args:
- CKAN_SITE_URL=${CKAN_SITE_URL}:${CKAN_PORT}
links:
- db
- solr
- redis
ports:
- "${CKAN_PORT}:5000"
environment:
- CKAN_SQLALCHEMY_URL=postgresql://ckan:${POSTGRES_PASSWORD}@db/ckan
- CKAN_SITE_URL=${CKAN_SITE_URL}
- DB_PORT_5432_TCP_ADDR=db
- DB_PORT_5432_TCP_PORT=${POSTGRES_PORT}
- SOLR_PORT_8983_TCP_ADDR=solr
- SOLR_PORT_8983_TCP_PORT=8983
- REDIS_PORT_6379_TCP_ADDR=redis
- REDIS_PORT_6379_TCP_PORT=6379
db:
container_name: db
build:
context: postgresql/
args:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
solr:
container_name: solr
image: ckan/solr:latest
ports:
- "8983:8983"
redis:
container_name: redis
image: redis:latest
ports:
- "6379:6379"