forked from NeuroVault/NeuroVault
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 947 Bytes
/
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
version: '2'
services:
db:
image: postgres:9.5.4
volumes:
- ./create_hstore_extension.sh:/docker-entrypoint-initdb.d/create_hstore_extension.sh:ro
uwsgi:
restart: always
image: neurovault/neurovault_fs
build: .
command: /code/run_uwsgi.sh
volumes:
- .:/code
- /var/www/static
- /var/www/image_data
depends_on:
- db
- redis
nginx:
restart: always
image: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
volumes_from:
- uwsgi
depends_on:
- uwsgi
redis:
restart: always
image: redis:3.0.7
command: redis-server --appendonly yes
worker:
image: neurovault/neurovault_fs
command: celery worker -A neurovault.celery -Q default -n default@%h
volumes_from:
- uwsgi
depends_on:
- db
- redis