-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (70 loc) · 2.63 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
65
66
67
68
69
70
71
72
73
74
version: "1.6.0"
services:
data_manager-nginx:
image: xiexf128/data_manager-nginx:latest
#comment the build section if you want to download from docker hub
# build:
# context: nginx/
# tags:
# - xiexf128/data_manager-nginx:1.5
# - xiexf128/data_manager-nginx:latest
restart: always
volumes:
- uwsgi_data:/tmp/uwsgi/
- web_static:/var/www/datamanager/assets/:ro
ports:
- "80:80"
depends_on:
- data_manager-django
data_manager-django:
&django_project
image: xiexf128/data_manager-django:latest
#comment the build section if you want to download from docker hub
# build:
# context: ./web/
# tags:
# - xiexf128/data_manager-django:1.6.0
# - xiexf128/data_manager-django:latest
restart: always
command: >
sh -c "/venv/bin/python3 manage.py collectstatic --noinput && /venv/bin/uwsgi --ini /app/datamanager.uwsgi.ini --enable-threads"
env_file:
- ./.django_secrets.env #app configure file
environment:
is_docker: "True"
system_version: "1.6.0_db36a41" # docker version number_app git commit hash
volumes:
- uwsgi_data:/tmp/uwsgi/
- web_static:/app/static/
- /var/run/docker.sock:/var/run/docker.sock
- /var/temp/:/app/media/temp/ # volume file conversion
#Please configure your folder/drive to save the data, make sure folders exist
#in Windows, /d/docker/primary_storage means d:/docker/primary_storage
#in Linux please just use linux folder native format
#primary storage location, required
#all other are optional, but recommended, doesn't need to adhere strictly to
#the meaning of folder name, i.e., remote_storage doesn't need to be remote
- type: bind
source: /D/docker/primary_storage # primary storage, default saving everything in C drive root, please change
target: //app/media//primary_storage #don't change
#secondary_storage, optional but recommended
- type: bind
source: /D/docker/secondary_storage
target: //app/media//secondary_storage #don't change
#remote_storage, optional but recommended
- type: bind
source: /D/docker/remote_storage
target: //app/media//remote_storage #don't change
#offline_storage, optional but recommended
- type: bind
source: /D/docker/offline_storage
target: //app/media//offline_storage #don't change
data_manager-JupiterNotebook:
<<: *django_project
command: >
sh -c "/venv/bin/python3 manage.py shell_plus --notebook"
ports:
- "8080:8080"
volumes:
uwsgi_data:
web_static: