forked from 5GEVE/mso-lo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (57 loc) · 1.26 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
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.7'
x-environment: &environment
IWFREPO: 'true'
IWFREPO_HTTPS: 'false'
IWFREPO_HOST: '192.168.18.14'
IWFREPO_PORT: '8087'
IWFREPO_INTERVAL: '300'
REDIS_HOST: 'redis'
REDIS_PORT: '6379'
services:
nginx:
image: nginx:1.18-alpine
depends_on:
- flask-app
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- mso-lo-net
ports:
- 80:80
flask-app:
image: 5geve/mso-lo:latest
depends_on:
- celery-worker
environment:
*environment
networks:
mso-lo-net:
aliases:
- flask-app
volumes:
- mso-lo-data:/usr/src/app/data
celery-worker:
image: 5geve/mso-lo:latest
depends_on:
- redis
command: [celery, -A, adaptation_layer.tasks, worker, -B, -s, /tmp/celerybeat-schedule, --loglevel=WARNING, --uid=nobody, --gid=nogroup]
environment:
*environment
networks:
mso-lo-net:
aliases:
- celery-worker
redis:
image: redis:6-alpine
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
mso-lo-net:
aliases:
- redis
networks:
mso-lo-net:
volumes:
mso-lo-data:
name: mso-lo-data