-
Notifications
You must be signed in to change notification settings - Fork 64
/
production.yml
60 lines (55 loc) · 1.21 KB
/
production.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
60
version: '3'
volumes:
static:
services:
django:
restart: always
image: neurovault/neurovault
build:
context: .
dockerfile: ./compose/django/Dockerfile
command: ./compose/django/prod_start
ports:
- "5000:5000"
volumes:
- .:/code
- ${NV_IMAGE_DATA}:/image_data
- static:/var/www/static
depends_on:
- redis
- postgres
env_file:
- ./.env
postgres:
image: postgres:14
volumes:
- ${DB_DATA}:/var/lib/postgresql/data
env_file:
- ./.env
redis:
restart: always
image: redis:6
command: redis-server --appendonly yes
worker:
image: neurovault/neurovault
command: celery -A neurovault.celery worker -Q default -n default@%h
volumes:
- .:/code
- ${NV_IMAGE_DATA}:/image_data
depends_on:
- redis
env_file:
- ./.env
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./compose/nginx/nginx.nossl.conf:/etc/nginx/conf.d/default.conf
- ./compose/nginx/certs:/etc/letsencrypt
- ./compose/nginx/certs-data:/data/letsencrypt
- static:/var/www/static
ports:
- "80:80"
- "443:443"
depends_on:
- django