-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (68 loc) · 2.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (68 loc) · 2.21 KB
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
version: "3"
services:
hoops:
image: ghcr.io/techsoft3d/streaming-server:latest
container_name: hoops
restart: unless-stopped
ports:
- "11182:11182"
- "11000-11034:11000-11034"
volumes:
- "./patches/server_config.js:/opt/hoops_communicator/quick_start/server_config.js"
- "./patches/Utils.js:/opt/hoops_communicator/server/node/lib/Utils.js"
- models:/opt/hoops_communicator/models
- "./hoops_license.txt:/opt/hoops_communicator/hoops_license.txt"
- public:/opt/public # Shared volume to copy files
environment:
- HOST_IP=${HOST_IP}
networks:
- shared-network
command: [
"/bin/sh",
"-c",
"
echo 'Copying HOOPS files to public/hoops...' &&
mkdir -p /opt/public/hoops &&
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/hoops_web_viewer.js /opt/public/hoops/ &&
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine-wasm.js /opt/public/hoops/ &&
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine-asmjs.js /opt/public/hoops/ &&
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine.wasm /opt/public/hoops/ &&
echo 'Copy complete. Starting Streaming Server...' &&
exec ../../3rd_party/node/bin/node --expose-gc ./lib/Startup.js --config-file ../../quick_start/server_config.js",
]
app:
image: ghcr.io/techsoft3d/node-server:latest
container_name: file-server
restart: unless-stopped
ports:
- "3000:3000" #change to whatever port you want files to be served from, but default is 3000
environment:
- PORT=3000 # This sets the PORT dynamically
volumes:
- public:/app/public # Mounts local "public" folder into the container
depends_on:
- hoops
networks:
- shared-network
proxy-server:
image: ghcr.io/techsoft3d/proxy-server:latest
container_name: proxy-server
restart: unless-stopped
ports:
- "443:443"
depends_on:
- hoops
networks:
- shared-network
volumes:
- ./certs:/etc/nginx/ssl
networks:
shared-network:
external: true
volumes:
public:
external: true
# patches:
# external: true
models:
external: true