-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-dev.yml
62 lines (57 loc) · 1.62 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
version: '3.6'
x-build-args: &build_args
INSTALL_PYTHON_VERSION: 3.8.2
INSTALL_NODE_VERSION: 12
x-default-volumes: &default_volumes
volumes:
- ./:/app
- node-modules:/app/node_modules
- ./dev.db:/tmp/dev.db
services:
flask-dev:
build:
context: .
target: development
args:
<<: *build_args
image: "airscore-development"
container_name: flask_dev
ports:
- "${FLASK_PORT}:${FLASK_PORT}"
- "2992:2992"
environment:
PYTHONUNBUFFERED: ${PYTHONUNBUFFERED}
WEB_SERVER_CONTAINER: ${WEB_SERVER_CONTAINER}
REDIS_HOST: ${REDIS_HOST:-redis}
REDIS_URL: redis://${REDIS_HOST:-redis}
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_SSL: ${REDIS_SSL:-0}
REDIS_SSL_CERT_REQS: ${REDIS_SSL_CERT_REQS}
FLASK_CONTAINER: flask_dev
FLASK_PORT: ${FLASK_PORT}
FLASK_ENV: development
FLASK_DEBUG: 1
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}
ADMINS: ${ADMINS}
MYSQLHOST: ${MYSQLHOST}
DATABASE: ${DATABASE}
MYSQLUSER: ${MYSQLUSER}
MYSQLPASSWORD: ${MYSQLPASSWORD}
DATABASE_URI: mysql+pymysql://${MYSQLUSER}:${MYSQLPASSWORD}@${MYSQLHOST}/${DATABASE}
XCONTEST_USER: ${XCONTEST_USER}
XCONTEST_PASS: ${XCONTEST_PASS}
TELEGRAM_API: ${TELEGRAM_API}
TELEGRAM_CHANNEL: ${TELEGRAM_CHANNEL}
<<: *default_volumes
redis:
image: redis
container_name: ${REDIS_HOST:-redis}
volumes:
node-modules:
static-build:
dev-db: