forked from opendata-stuttgart/devices.sensor.community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (47 loc) · 1016 Bytes
/
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
version: "3"
services:
web:
restart: unless-stopped
build:
context: .
volumes:
- .:/app
depends_on:
- mysql
- redis
- smtp
ports:
- 5000:5000
command: bash -c "flask db upgrade && flask run --host=0.0.0.0"
environment:
- FLASK_ENV=development
# TODO get rid of Flask-Celery per http://flask.pocoo.org/docs/1.0/patterns/celery/
#celery:
# restart: unless-stopped
# build:
# context: .
# volumes:
# - .:/app
# depends_on:
# - mysql
# - redis
# command: bash -c "python3 manage.py celery_worker"
gulp:
image: node:10-alpine
command: npm run build
volumes:
- .:/app
working_dir: /app
mysql:
image: mariadb:10.3
volumes:
- ./initdb:/docker-entrypoint-initdb.d
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=1
- MYSQL_USER=devel
- MYSQL_PASSWORD=devel
- MYSQL_DATABASE=devel
redis:
image: redis:5.0-alpine
smtp:
image: tianon/exim4