-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-dev-local.yml
83 lines (78 loc) · 2.04 KB
/
docker-compose-dev-local.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
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-local:
build:
context: .
target: development
args:
<<: *build_args
image: "airscore-development-local"
container_name: flask_dev_local
ports:
- "${FLASK_PORT}:${FLASK_PORT}"
- "2992:2992"
environment:
PYTHONUNBUFFERED: ${PYTHONUNBUFFERED}
REDIS_URL: redis://${REDIS_CONTAINER}:6379
REDIS_CONTAINER: ${REDIS_CONTAINER}
WEB_SERVER_CONTAINER: ${WEB_SERVER_CONTAINER}
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: db
DATABASE: airscore
MYSQLUSER: root
MYSQLPASSWORD: airscore
DATABASE_URI: mysql+pymysql://root:airscore@db:3306/airscore
XCONTEST_USER: ${XCONTEST_USER}
XCONTEST_PASS: ${XCONTEST_PASS}
TELEGRAM_API: ${TELEGRAM_API}
TELEGRAM_CHANNEL: ${TELEGRAM_CHANNEL}
<<: *default_volumes
redis:
image: redis
container_name: ${REDIS_CONTAINER}
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
container_name: mysql_db_local
security_opt:
- seccomp:unconfined
environment:
MYSQL_ROOT_PASSWORD: airscore
MYSQL_DATABASE: airscore
volumes:
- ./dev.db:/var/lib/mysql:rw
- type: bind
source: ./airscore.sql
target: /docker-entrypoint-initdb.d/airscore.sql
ports:
- "3306:3306"
adminer:
image: adminer
restart: always
container_name: adminer
ports:
- 8080:8080
volumes:
node-modules:
static-build:
dev-db:
aircore-sql: