-
Notifications
You must be signed in to change notification settings - Fork 39
/
docker-compose.yml
76 lines (71 loc) · 1.81 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
---
version: "3.7"
services:
app:
image: datagov/ckanext-geodatagov:${CKAN_VERSION} # ensures docker-compose will rebuild the right image in case we change CKAN_VERSION
build:
context: .
args:
CKAN_VERSION: ${CKAN_VERSION}
env_file:
- .env
environment:
CKAN_SOLR_URL: http://solr:8983/solr/ckan
CKAN_REDIS_URL: redis://redis:6379/1
CKAN_DATAPUSHER_URL: http://localhost:8080/ # datapusher is not really enabled
PYTHONDONTWRITEBYTECODE: 1
ports:
- "5000:5000"
depends_on:
- db
- redis
- solr
- localstack-container
volumes:
- ./ckanext:/srv/app/ckanext/
- ./test.sh:/srv/app/test.sh
- ./test.ini:/srv/app/test.ini
- ./setup.py:/srv/app/setup.py
- ckan_storage:/var/lib/ckan
- ./docker-entrypoint.d:/docker-entrypoint.d
db:
image: datagov/catalog.data.gov.db:latest
env_file:
- .env
healthcheck:
test: ["CMD", "pg_isready --username=postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
redis:
image: redis:alpine
solr:
image: datagov/catalog.data.gov.solr:latest
ports:
- "8983:8983"
localstack-container:
container_name: "localstack-container"
privileged: true
image: localstack/localstack:1.1.0
ports:
- "4566-4583:4566-4583"
- "8081:8081"
environment:
- SERVICES=s3
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- HOSTNAME=
- DOCKER_HOST=unix:///var/run/docker.sock
- DEFAULT_REGION=us-east-1
- START_WEB=1
volumes:
- "./tmp/localstack:/var/lib/localstack"
- "./tmp/localstack/run/docker.sock:/var/run/docker.sock"
volumes:
ckan_storage:
pg_data:
solr_data: