-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
55 lines (50 loc) · 1021 Bytes
/
docker-compose.yaml
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: "2"
services:
redis:
image: redis:latest
command: redis-server --appendonly yes
volumes:
- ./data:/data
flask:
image: meowbot-flask
build:
context: .
dockerfile: Dockerfile-flask
command: uwsgi --ini instance/meowbot.ini
volumes:
- ./:/usr/src/app
depends_on:
- redis
environment:
- MEOWBOT_HOST
- VIRTUAL_PROTO=uwsgi
- VIRTUAL_HOST=${MEOWBOT_HOST}
- VIRTUAL_PORT=5000
- LETSENCRYPT_HOST=${MEOWBOT_HOST}
expose:
- "5000"
networks:
- default
- nginx-proxy
worker:
image: meowbot-flask
command: rq worker -c instance.config
volumes:
- ./:/usr/src/app
depends_on:
- redis
environment:
- MEOWBOT_HOST
scheduler:
image: meowbot-flask
command: rqscheduler -H redis -i 10
volumes:
- ./:/usr/src/app
depends_on:
- redis
environment:
- MEOWBOT_HOST
networks:
nginx-proxy:
external:
name: nginx-proxy