-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.13 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
services:
web:
build:
context: .
dockerfile: docker/Dockerfile.server
volumes:
- /mnt/videos:/app/exports
- /mnt/content:/app/content
user: thekid
ports:
- "5000:5000"
environment:
- FLASK_APP=bereal.server
depends_on:
- redis
mem_limit: 500m
celery:
build:
context: .
dockerfile: docker/Dockerfile.celery
volumes:
- /mnt/videos:/app/exports
- /mnt/content:/app/content
user: thekid
command: celery -A bereal.celery worker --loglevel=INFO --logfile=celery.log -E -c 1
environment:
- FLASK_APP=bereal.server
depends_on:
- web
- redis
mem_limit: 3g
redis:
image: "redis:alpine"
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf
nginx:
image: "nginx:alpine"
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx:/etc/nginx/conf.d
- ./nginx/robots.txt:/usr/share/nginx/html/robots.txt
- /var/log/nginx:/var/log/nginx
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- web