forked from mviewer/mviewerstudio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (50 loc) · 1.52 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
version: '3'
volumes:
apps:
services:
# Reverse-proxy using nginx. Groups mviewer and mviewerstudio under respective paths
# Config can be found under ./docker/nginx/default.conf.template
www:
image: nginx
ports:
- 80:80
environment:
- NGINX_HOST=localhost
- MVIEWERSTUDIO_URL_PATH_PREFIX=mviewerstudio
volumes:
- ./docker/nginx:/etc/nginx/templates
depends_on:
- mviewerstudio
- mviewer
# Python version
# Served under /${MVIEWERSTUDIO_URL_PATH_PREFIX}/ see docker/nginx/default.conf.template
mviewerstudio:
build:
context: .
dockerfile: docker/Dockerfile-python-backend
image: mviewer/mviewerstudio:latest
# ports:
# - "8000:8000"
environment:
- CONF_PATH_FROM_MVIEWER=apps/store
- CONF_PUBLISH_PATH_FROM_MVIEWER=apps/public
- DEFAULT_ORG=my_org
- EXPORT_CONF_FOLDER=/home/apprunner/apps/store
- MVIEWERSTUDIO_PUBLISH_PATH=/home/apprunner/apps/public
- MVIEWERSTUDIO_URL_PATH_PREFIX=mviewerstudio
volumes:
- "apps:/home/apprunner/apps"
- "./config-python-sample.json:/home/apprunner/mviewerstudio_backend/static/apps/config.json"
# Served under /mviewer/ see docker/nginx/default.conf.template
mviewer:
depends_on:
- mviewerstudio
# this image is automatically built in
# the mviewer/mviewer github repository
# See https://github.com/mviewer/mviewer/pull/236
image: mviewer/mviewer
# ports:
# - "5051:80"
volumes:
- "apps:/usr/share/nginx/html/apps"
#