-
Notifications
You must be signed in to change notification settings - Fork 64
/
docker-compose.yml
48 lines (45 loc) · 982 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
47
48
version: '3'
services:
django:
restart: always
build:
context: .
dockerfile: ./compose/django/Dockerfile
target: neurovault
image: neurovault/neurovault
command: python manage.py runserver 0.0.0.0:8000
ports:
- "8000:8000"
volumes:
- .:/code
- ${NV_IMAGE_DATA}:/image_data
depends_on:
- redis
- postgres
- worker
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:
build:
context: .
dockerfile: ./compose/django/Dockerfile
target: neurovault
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