-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (46 loc) · 1.14 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
version: '3'
services:
app:
build: .
command: python -m flask run --host 0.0.0.0 --port 5000
container_name: Mail_Scheduler
env_file:
- .env
environment:
- FLASK_APP=serve.py
- FLASK_DEBUG=${FLASK_DEBUG}
- APP_SETTINGS=${APP_SETTINGS}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_DEFAULT_SENDER=${MAIL_DEFAULT_SENDER}
- SECRET_KEY=${SECRET_KEY}
ports:
- '5000:5000'
volumes:
- .:/var/www/mail-scheduler
worker:
build: .
command: python -m flask rq worker
env_file:
- .env
environment:
- FLASK_APP=serve.py
- FLASK_DEBUG=${FLASK_DEBUG}
- APP_SETTINGS=${APP_SETTINGS}
- MAIL_USERNAME=${MAIL_USERNAME}
- MAIL_PASSWORD=${MAIL_PASSWORD}
- MAIL_DEFAULT_SENDER=${MAIL_DEFAULT_SENDER}
- SECRET_KEY=${SECRET_KEY}
volumes:
- .:/var/www/mail-scheduler
scheduler:
build: .
command: python -m flask rq scheduler
environment:
- FLASK_APP=serve.py
volumes:
- .:/var/www/mail-scheduler
postgres:
image: "postgres:alpine"
redis:
image: "redis:alpine"