/
docker-compose.yml
57 lines (48 loc) · 1.03 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
version: '3'
services:
redis:
container_name: redis
image: 'redis:7-alpine'
command: redis-server --requirepass verystrongpassword
volumes:
- 'redis-data:/var/lib/redis/data'
ports:
- '6379:6379'
website:
container_name: website
build: .
env_file:
- '.env'
volumes:
- 'enferno:/app'
links:
- redis
ports:
- '8000:5000'
nginx:
container_name: nginx
restart: always
image: 'bitnami/nginx:latest'
ports:
- '80:80'
volumes:
- './enferno/static/:/app/static/'
- './nginx/nginx.conf:/opt/bitnami/nginx/conf/nginx.conf'
- './nginx/enferno.conf:/opt/bitnami/nginx/conf/server_blocks/enferno.conf'
depends_on:
- website
healthcheck:
test: [ "CMD", "service", "nginx", "status" ]
celery:
container_name: celery
build: .
command: celery -A enferno.tasks worker -l info
env_file:
- '.env'
links:
- redis
volumes_from:
- website
volumes:
enferno:
redis-data: