-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
97 lines (91 loc) · 2.6 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "2.1"
services:
base:
build: .
environment:
FLASK_APP: wsgi.py
FLASK_DEBUG: 1
DATABASE_URL: postgresql://nomad:nomad@db/nomad
entrypoint: ./wait-for-it.sh db:5432 --
volumes:
- .:/opt/nomad/:ro
nomad:
extends: base
command: flask run -h 0.0.0.0
environment:
- ENABLE_PROXYFIX=${ENABLE_PROXYFIX}
- SECRET_KEY=${SECRET_KEY}
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_APP=${FLASK_APP}
- GOOGLE_MAPS_API_KEY=${GOOGLE_MAPS_API_KEY}
- INTERCOM_KEY=${INTERCOM_KEY}
- FACEBOOK_CLIENT_ID=${FACEBOOK_CLIENT_ID}
- FACEBOOK_CLIENT_SECRET=${FACEBOOK_CLIENT_SECRET}
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- SENTRY_DSN=${SENTRY_DSN}
- VERBOSE_SQLALCHEMY=${VERBOSE_SQLALCHEMY}
- RQ_ENABLED=true
- REDIS_URL=redis://redis
- MAIL_LOG_ONLY=${MAIL_LOG_ONLY}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USE_TLS=${MAIL_USE_TLS}
- MAIL_USE_SSL=${MAIL_USE_SSL}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- BRANDING_ORG_NAME=${BRANDING_ORG_NAME}
- BRANDING_ORG_SITE_NAME=${BRANDING_ORG_SITE_NAME}
- BRANDING_CSS_URL=${BRANDING_CSS_URL}
- BRANDING_HEADLINE_1=${BRANDING_HEADLINE_1}
- BRANDING_HEADLINE_2=${BRANDING_HEADLINE_2}
- BRANDING_EMAIL_SIGNATURE=${BRANDING_EMAIL_SIGNATURE}
- BRANDING_PRIVACY_URL=${BRANDING_PRIVACY_URL}
- BRANDING_SUPPORT_EMAIL=${BRANDING_SUPPORT_EMAIL}
- PYTHONUNBUFFERED=0
ports:
- 5000:5000
depends_on:
- redis
- db
- db_setup
nomad_worker:
extends: base
command: flask rq worker --worker-ttl 450
environment:
- SERVER_NAME=app
- FLASK_DEBUG=${FLASK_DEBUG}
- FLASK_APP=${FLASK_APP}
- SENTRY_DSN=${SENTRY_DSN}
- VERBOSE_SQLALCHEMY=${VERBOSE_SQLALCHEMY}
- MAIL_LOG_ONLY=${MAIL_LOG_ONLY}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_PORT=${MAIL_PORT}
- MAIL_USE_TLS=${MAIL_USE_TLS}
- MAIL_USE_SSL=${MAIL_USE_SSL}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- PYTHONUNBUFFERED=0
- REDIS_URL=redis://redis
depends_on:
- redis
- db
- db_setup
db_setup:
extends: base
command: flask db upgrade
depends_on:
- db
redis:
image: redis
db:
image: mdillon/postgis
environment:
POSTGRES_PASSWORD: nomad
POSTGRES_USER: nomad
POSTGRES_DB: nomad
fakesmtp:
image: djfarrelly/maildev
ports:
- 25
- 8081:80