-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
55 lines (51 loc) · 1.61 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
---
version: '3'
volumes:
freezing-data:
external: true
services:
freezing-db:
image: mysql:5.7
container_name: freezing-db
ports:
- "3306:3306"
volumes:
- freezing-data:/var/lib/mysql
- ./docker/db/sql-scripts:/sql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-fr33z3}
MYSQL_DATABASE: ${MYSQL_DATABASE:-freezing}
MYSQL_USER: ${MYSQL_USER:-freezing}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-zeer0}
freezing-web:
build: .
container_name: freezing-web
command: bafs-server
ports:
- "5000:8000"
volumes:
- ./data/cache:/data/cache
- ./leaderboards:/data/leaderboards
- ./data/sessions:/data/sessions
- ./resources/docker/settings.cfg:/config/settings.cfg
links:
- freezing-db:freezing-db.container
environment:
BIND_INTERFACE: "0.0.0.0"
VIRTUAL_HOST: ${FREEZING_WEB_FQDN}
LETSENCRYPT_HOST: ${FREEZING_WEB_FQDN}
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
SECRET_KEY: ${SECRET_KEY}
DEBUG: ${DEBUG}
SQLALCHEMY_URL: ${SQLALCHEMY_URL:-mysql+pymysql://freezing:[email protected]/freezing?charset=utf8mb4&binary_prefix=true}
BEANSTALKD_HOST: beanstalkd.container
BEANSTALKD_PORT: 11300
STRAVA_CLIENT_ID: ${STRAVA_CLIENT_ID}
STRAVA_CLIENT_SECRET: ${STRAVA_CLIENT_SECRET}
TEAMS: ${TEAMS}
OBSERVER_TEAMS: ${OBSERVER_TEAMS}
MAIN_TEAM: ${MAIN_TEAM}
START_DATE: ${START_DATE}
END_DATE: ${END_DATE}
TIMEZONE: ${TIMEZONE:-America/New_York}
COMPETITION_TITLE: ${COMPETITION_TITLE:-Freezing Saddles Local Dev}