-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.dev.yml
108 lines (96 loc) · 3.15 KB
/
docker-compose.dev.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
98
99
100
101
102
103
104
105
106
107
108
---
volumes:
freezing-data:
external: true
services:
#### Stock containers
datadog:
restart: unless-stopped
logging: &json-logging
driver: json-file
options:
max-file: "2"
max-size: 10m
beanstalkd:
restart: unless-stopped
logging: *json-logging
nginx:
restart: unless-stopped
logging: *json-logging
nginx-letsencrypt:
restart: unless-stopped
logging: *json-logging
nginx-docker-gen:
restart: unless-stopped
logging: *json-logging
# Database used for local development
mysql:
restart: unless-stopped
image: mysql:8.0
container_name: freezing-mysql
ports:
- "3306:3306"
volumes:
- freezing-data:/var/lib/mysql
# Run mysqld with ideal UTF-8 character set defaults
# Thanks Javier Arias & Stack Overflow https://stackoverflow.com/a/50529359
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci'] # yamllint disable-line rule:line-length
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-freezing}
MYSQL_HOST: ${MYSQL_HOST:-mysql}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-please-change-me-as-this-is-a-default}
MYSQL_PORT: ${MYSQL_PORT:-3306}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-terrible-root-password-which-should-be-changed} # yamllint disable-line rule:line-length
MYSQL_USER: ${MYSQL_USER:-freezing}
logging: *json-logging
#### Freezing Saddles containers
freezing-sync:
image: ${FREEZING_SYNC_IMAGE:-freezingsaddles/freezing-sync:latest}
restart: unless-stopped
environment:
BEANSTALKD_HOST: ${BEANSTALKD_HOST:-beanstalkd}
BEANSTALKD_PORT: ${BEANSTALKD_PORT:-11300}
MYSQL_HOST: ${MYSQL_HOST:-mysql}
MYSQL_PORT: ${MYSQL_HOST:-3306}
SQLALCHEMY_SILENCE_UBER_WARNING: ${SQLALCHEMY_SILENCE_UBER_WARNING:-false}
SQLALCHEMY_URL: ${SQLALCHEMY_URL}
SQLALCHEMY_WARN_20: ${SQLALCHEMY_WARN_20:-true}
depends_on:
- beanstalkd
- mysql
logging: *json-logging
freezing-nq:
image: ${FREEZING_NQ_IMAGE:-freezingsaddles/freezing-nq:latest}
restart: unless-stopped
depends_on:
- beanstalkd
logging: *json-logging
freezing-web:
image: ${FREEZING_WEB_IMAGE:-freezingsaddles/freezing-web:latest}
restart: unless-stopped
depends_on:
- beanstalkd
- mysql
ports:
- 8000:8000
environment:
BIND_INTERFACE: "0.0.0.0"
COMPETITION_TITLE: ${COMPETITION_TITLE}
DEBUG: ${DEBUG}
END_DATE: ${END_DATE}
ENVIRONMENT: ${ENVIRONMENT}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
LETSENCRYPT_HOST: ${FREEZING_WEB_FQDN}
MAIN_TEAM: ${MAIN_TEAM}
OBSERVER_TEAMS: ${OBSERVER_TEAMS}
SECRET_KEY: ${SECRET_KEY}
SQLALCHEMY_SILENCE_UBER_WARNING: ${SQLALCHEMY_SILENCE_UBER_WARNING:-false}
SQLALCHEMY_URL: ${SQLALCHEMY_URL}
SQLALCHEMY_WARN_20: ${SQLALCHEMY_WARN_20:-1}
START_DATE: ${START_DATE}
STRAVA_CLIENT_ID: ${STRAVA_CLIENT_ID}
STRAVA_CLIENT_SECRET: ${STRAVA_CLIENT_SECRET}
TEAMS: ${TEAMS}
TIMEZONE: ${TIMEZONE:-America/New_York}
VIRTUAL_HOST: ${FREEZING_WEB_FQDN}
logging: *json-logging