Open goaliedude3919 opened 2 weeks ago
Are you getting more output than that? Because the container should execute this:
command: sh -c "npm i; NOCOMPRESS=1 npx nodemon -e js,mjs,css,html,json --ignore save/ --ignore coverage/ --ignore tests/ --inspect server.mjs"
The first part is npm i
, which should install the requirements. That doesn't seem to be working. Maybe your container can't reach the internet?
Are you getting more output than that? Because the container should execute this:
command: sh -c "npm i; NOCOMPRESS=1 npx nodemon -e js,mjs,css,html,json --ignore save/ --ignore coverage/ --ignore tests/ --inspect server.mjs"
The first part is
npm i
, which should install the requirements. That doesn't seem to be working. Maybe your container can't reach the internet?
Here's the logging that I see in Dozzle: vtt-log.txt
Here's a log from the filesystem that has an error in it. vtt-log2.txt
I don't have much experience with docker-compose. The Dockerfile
at the top of the page is more meant as actual hosting and not developing. I asked Claude (AI) to turn it into a docker-compose file. Maybe you have more luck with that:
services:
vtt:
image: node:18-alpine
ports:
- "8272:8272"
volumes:
- ./save:/virtualtabletop-main/save
working_dir: /virtualtabletop-main
command: npm start
entrypoint: >
sh -c "
apk add --no-cache curl unzip &&
curl -LO https://github.com/ArnoldSmith86/virtualtabletop/archive/refs/heads/main.zip &&
unzip main.zip &&
rm main.zip &&
apk del curl unzip &&
cd virtualtabletop-main &&
npm install --prod &&
exec npm start
"
There are also some images in the docker hub: https://hub.docker.com/search?q=virtualtabletop but they don't seem to get updated. Never tried any of them.
In general your error messages seem to be permission problems on the host filesystem though. Maybe take a look at that.
I don't have much experience with docker-compose. The
Dockerfile
at the top of the page is more meant as actual hosting and not developing. I asked Claude (AI) to turn it into a docker-compose file. Maybe you have more luck with that:services: vtt: image: node:18-alpine ports: - "8272:8272" volumes: - ./save:/virtualtabletop-main/save working_dir: /virtualtabletop-main command: npm start entrypoint: > sh -c " apk add --no-cache curl unzip && curl -LO https://github.com/ArnoldSmith86/virtualtabletop/archive/refs/heads/main.zip && unzip main.zip && rm main.zip && apk del curl unzip && cd virtualtabletop-main && npm install --prod && exec npm start "
There are also some images in the docker hub: https://hub.docker.com/search?q=virtualtabletop but they don't seem to get updated. Never tried any of them.
In general your error messages seem to be permission problems on the host filesystem though. Maybe take a look at that.
Looks like that got the container working, but it looks like none of the buttons are loading or something? There's some weird secondary text on top of all the buttons.
Then the externalURL
in config.json
is wrong.
Then the
externalURL
inconfig.json
is wrong.
So one change I made to the compose file was to make the volume /opt/apps/vtt/save:/virtualtabletop-main/save
. When doing this I didn't see anything on the filesystem other than an empty save folder. So I tried adding another volume of /opt/apps/vtt:/virtualtabletop-main
. This created a folder under vtt called virtualtabletop-main where I can find a config.json file, but I can no longer access the webpage when adding that volume.
I'm trying to run this in Docker and tried following the instructions in the Wiki (https://github.com/ArnoldSmith86/virtualtabletop/wiki/Docker)
I use Dockge to manage my docker containers, to I tried following the instructions under "Developing virtualtabletop in a container". When I try to start the container, I get the following error: