forked from cortex-lab/alyx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.38 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
58
59
60
61
62
63
64
# docker-compose run django ./manage.py migrate
# docker-compose run django ./manage.py createsuperuser
# docker-compose up
version: '2.4'
services:
postgres:
image: postgres:12-alpine
env_file:
- .env
volumes:
- ./data/postgres:/var/lib/postgresql/data
expose:
- 5432
networks:
- superset
- default
cpus: 2
mem_limit: 1536m
restart: on-failure
django:
build:
context: .
dockerfile: ./Dockerfile
image: alyx:django_base
working_dir: /opt/monadical.alyx/
command: ./alyx/manage.py runserver 0.0.0.0:8000
env_file:
- .env
stdin_open: true
tty: true
depends_on:
- postgres
expose:
- 8000
volumes:
- ./alyx:/opt/monadical.alyx
- ./data/www-data-home:/home/www-data
- ./data/uploaded:/opt/monadical.alyx/uploaded
- ./data/logs/django:/var/log
cpus: 2
mem_limit: 1536m
restart: on-failure
argo:
image: cloudflare/cloudflared
network_mode: 'service:django'
command: tunnel --no-autoupdate --retries 15 --hostname alyx.zervice.io http://django:8000
depends_on:
- django
volumes:
# get this cert from https://www.cloudflare.com/a/warp
- ./data/certs/zervice.io.pem:/etc/cloudflared/cert.pem:ro
cpus: 2
mem_limit: 4096m
restart: on-failure
networks:
superset:
external:
name: superset