-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
64 lines (63 loc) · 1.44 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
---
version: '3'
services:
web:
build: .
environment:
GUNICORN_RELOAD: "True"
GOOGLE_APPLICATION_CREDENTIALS: "/usr/src/app/twitterbot-nl-api.json"
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
ports:
- "8000:80"
depends_on:
- postgres
- elasticsearch
volumes:
- .:/usr/src/app
- logfiles:/logfiles
command: cpdb/manage.py runserver 0.0.0.0:80
tty: true
stdin_open: true
postgres:
build: ./docker/postgres
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
command: postgres -c ssl=off
elasticsearch:
image: elasticsearch:5-alpine
ports:
- "9200:9200"
volumes:
- esdata:/usr/share/elasticsearch/data
cpdpbot:
build: ./docker/cpdpbot
env_file: .env
pg-proxy:
image: gcr.io/cloudsql-docker/gce-proxy:1.11
volumes:
- .:/app
command:
- "/cloud_sql_proxy"
- "-instances=$PGCLOUD_INSTANCE=tcp:0.0.0.0:5432"
- "-credential_file=$PG_CREDENTIAL_FILE"
psql:
image: postgres:9.6-alpine
environment:
PGPASSWORD: $PGPASSWORD
command: "psql -h postgres -U cpdb postgres"
kibana:
image: kibana:5
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
volumes:
pgdata:
esdata:
logfiles: