forked from data-for-change/anyway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-production.override.yml
57 lines (53 loc) · 1.35 KB
/
docker-compose-production.override.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'
services:
nginx:
build: nginx_docker
image: ghcr.io/hasadna/anyway/nginx:latest
depends_on:
- anyway
ports:
- "8000:80"
anyway:
environment:
- PROXYFIX_X_FOR=1
- PROXYFIX_X_PROTO=1
- PROXYFIX_X_HOST=1
- FLASK_ENV=production
- DATABASE_URL
- GOOGLE_MAPS_KEY
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_KEY
- TWITTER_ACCESS_SECRET
- FACEBOOK_KEY
- FACEBOOK_SECRET
- GOOGLE_LOGIN_CLIENT_ID
- GOOGLE_LOGIN_CLIENT_SECRET
- MAILUSER
- MAILPASS
- GOOGLE_APPLICATION_CREDENTIALS
- GOOGLE_APPLICATION_CREDENTIALS_HOST_PATH
- APP_SECRET_KEY
volumes:
- "${GOOGLE_APPLICATION_CREDENTIALS_HOST_PATH}:${GOOGLE_APPLICATION_CREDENTIALS}"
command: "gunicorn -b 0.0.0.0:5000 -w 4 -t 120 anyway:app"
db:
environment:
- DBRESTORE_AWS_BUCKET=dfc-anyway-full-db-dumps
- DBRESTORE_FILE_NAME
- DBRESTORE_SET_ANYWAY_PASSWORD
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
db-backup:
build:
context: db_docker
dockerfile: backup.Dockerfile
environment:
- DBDUMP_AWS_ACCESS_KEY_ID
- DBDUMP_AWS_SECRET_ACCESS_KEY
- DBDUMP_S3_FILE_PREFIX
- DBDUMP_PASSWORD
- DBDUMP_HOST
- DBDUMP_USER
restart: "no"