forked from datopian/ckanext-blob-storage
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (51 loc) · 1.55 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
# Docker Compose file for ckanext-blob-storage
# ------------------------------------------------
# The purpose of this docker-compose file is to simplify setting up a
# development environment for this CKAN extension; It defines Docker based
# services for all external CKAN dependencies (DB, Solr, Redis) but not for
# CKAN itself - you should probably run CKAN in a local virtual environment
# to simplify debugging.
#
# Most likely, you do not want to use this file directly with `docker-compose`
# but use the provided Make targets to manage things.
version: "3"
volumes:
db_data:
services:
db:
image: postgres:9-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- db_data:/var/lib/postgresql/data
solr:
image: ckan/solr
environment:
- CKAN_SOLR_PASSWORD=${CKAN_SOLR_PASSWORD}
ports:
- 8983:8983
redis:
image: redis:latest
ports:
- 6379:6379
giftless:
image: datopian/giftless
command: ["--http", "0.0.0.0:9419", "-M", "-T", "--threads", "2", "-p", "2", "--manage-script-name", "--callable", "app"]
environment:
- GIFTLESS_CONFIG_FILE=/etc/giftless.yaml
- GIFTLESS_DEBUG=true
volumes:
- ./docker/giftless.yaml:/etc/giftless.yaml:ro
- ../giftless:/app # Use local giftless
ports:
- "9419:9419"
# nginx:
# image: nginx:1.13
# volumes:
# - ./docker/nginx.conf:/etc/nginx/conf.d/default.conf
# ports:
# - "9419:80"