Skip to content

Commit 07d96e7

Browse files
committed
update
1 parent c2ab5cb commit 07d96e7

File tree

3 files changed

+310
-304
lines changed

3 files changed

+310
-304
lines changed

docker-compose.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: "3"
22

33
services:
44
hoops:
@@ -13,47 +13,51 @@ services:
1313
- "./patches/Utils.js:/opt/hoops_communicator/server/node/lib/Utils.js"
1414
- models:/opt/hoops_communicator/models
1515
- "./hoops_license.txt:/opt/hoops_communicator/hoops_license.txt"
16-
- public:/opt/public # Shared volume to copy files
16+
- public:/opt/public # Shared volume to copy files
1717

1818
networks:
19-
- shared-network
20-
command: ["/bin/sh", "-c", "
19+
- shared-network
20+
command: [
21+
"/bin/sh",
22+
"-c",
23+
"
2124
echo 'Copying HOOPS files to public/hoops...' &&
2225
mkdir -p /opt/public/hoops &&
2326
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/hoops_web_viewer.js /opt/public/hoops/ &&
2427
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine-wasm.js /opt/public/hoops/ &&
2528
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine-asmjs.js /opt/public/hoops/ &&
2629
cp /opt/hoops_communicator/web_viewer/deprecated/src/js/engine.wasm /opt/public/hoops/ &&
2730
echo 'Copy complete. Starting Streaming Server...' &&
28-
exec ../../3rd_party/node/bin/node --expose-gc ./lib/Startup.js --config-file ../../quick_start/server_config.js"]
31+
exec ../../3rd_party/node/bin/node --expose-gc ./lib/Startup.js --config-file ../../quick_start/server_config.js",
32+
]
2933

3034
app:
3135
image: ghcr.io/techsoft3d/node-server:latest
3236
container_name: file-server
3337
restart: unless-stopped
3438
ports:
35-
- "3000:3000" #change to whatever port you want files to be served from, but default is 3000
39+
- "3000:3000" #change to whatever port you want files to be served from, but default is 3000
3640
environment:
37-
- PORT=3000 # This sets the PORT dynamically
41+
- PORT=3000 # This sets the PORT dynamically
3842
volumes:
39-
- public:/app/public # Mounts local "public" folder into the container
43+
- public:/app/public # Mounts local "public" folder into the container
4044
depends_on:
4145
- hoops
4246
networks:
43-
- shared-network
47+
- shared-network
4448

4549
proxy-server:
46-
image: ghcr.io/techsoft3d/proxy-server:latest
50+
image: ghcr.io/techsoft3d/proxy-server:latest
4751
container_name: proxy-server
4852
restart: unless-stopped
4953
ports:
5054
- "443:443"
5155
depends_on:
5256
- hoops
5357
networks:
54-
- shared-network
58+
- shared-network
5559
volumes:
56-
- ./certs:/app/certs
60+
- ./certs:/etc/nginx/ssl
5761
networks:
5862
shared-network:
5963
external: true

0 commit comments

Comments
 (0)