-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
executable file
·57 lines (51 loc) · 1.32 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
version: "3.7"
# docker-compose build && docker-compose up
services:
db:
container_name: ${POSTGRESQL_CONTAINER_NAME}
build:
context: contrib/postgres
dockerfile: Dockerfile
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- CKAN_DB_USER=${CKAN_DB_USER}
- CKAN_DB_PASSWORD=${CKAN_DB_PASSWORD}
- CKAN_DB=${CKAN_DB}
- DATASTORE_READONLY_USER=${DATASTORE_READONLY_USER}
- DATASTORE_READONLY_PASSWORD=${DATASTORE_READONLY_PASSWORD}
- DATASTORE_DB=${DATASTORE_DB}
volumes:
- pg_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}", "-d", "${POSTGRES_DB}"]
web:
container_name: web
build:
context: .
depends_on:
- solr
- redis
ports:
- "5050:5000"
env_file:
- .env
datapusher:
container_name: datapusher
image: ckan/ckan-base-datapusher:0.0.20
ports:
- "8800:8800"
solr:
image: ckan/ckan-solr:2.10-solr8
ports:
- "8983:8983"
volumes:
- solr-data:/opt/solr/server/solr/ckan
redis:
image: redis:latest
volumes:
solr-data: {}
ckan-filestore: {}
pg_data: {}