-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yaml
83 lines (74 loc) · 1.99 KB
/
docker-compose.yaml
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
77
78
79
80
81
82
83
version: '3.2'
services:
redis:
image: redis:alpine
# setting redis to a different port is not supported by pipelines
# so we can't expose it by default - to prevent port collisions with system redis
# if you need it, uncomment and set DPP_REDIS_HOST=localhost
# ports:
# - "6379:6379"
db:
image: postgres:9.6.3-alpine
environment:
- "POSTGRES_PASSWORD=123456"
volumes:
- "db:/var/lib/postgresql/data"
ports:
- "15432:5432"
# object storage
minio:
# to use minio instead of the default S3, set the following environment variables:
# S3_SIGNATURE_VERSION=s3v4
# AWS_ACCESS_KEY_ID=admin
# AWS_SECRET_ACCESS_KEY=12345678
# S3_ENDPOINT_URL=http://localhost:19000
# S3_REGION=us-east-1
# BUDGETKEY_S3_BUCKET=budgetkey
# BUDGETKEY_S3_BUCKET_BASEURL=http://localhost:19000/budgetkey/
image: minio/minio
ports:
- "19000:9000"
command:
- server
- /data
environment:
- "MINIO_ACCESS_KEY=admin"
- "MINIO_SECRET_KEY=12345678"
volumes:
- minio:/data
pipelines:
image: budgetkey/budgetkey-data-pipelines
build: .
volumes:
- "data:/var/datapackages"
ports:
- "5000:5000"
environment:
DPP_DB_ENGINE: postgresql://postgres:123456@db:5432/postgres"
DPP_REDIS_HOST: redis
DPP_ELASTICSEARCH: elasticsearch:9200
# simple configuration which only runs serve and allows to run commands using docker-compose exec
# useful for local development - where you most likely want to run only a specific pipeline
entrypoint: ["sh", "-c", "dpp init && dpp serve"]
elasticsearch:
image: budgetkey/open-budget-elasticsearch
ports:
- "19200:9200"
kibana:
depends_on:
- elasticsearch
image: kibana:5.3
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200/"
ports:
- "15601:5601"
adminer:
depends_on:
- db
image: adminer
ports:
- "18080:8080"
volumes:
data:
db:
minio: