This is a docker image for SquadJS.
Runs with pm2 to mantain the process uptime and uses the -slim image to reduce image size.
Check the examples on the examples folder.
services:
squadjs:
image: squadjs-docker
volumes:
- ./my-config.json:/app/config.json
- /squad/logs/:/logsYou can either mount a volume to hook up the configuration or provide a config environmental with the json configuration.
When using ftp or sftp no special configuration is required.
If you want to use the tail method you will need to mount the logs folder and point the configuration to the mounted path.
SquadJS can run with a SQLite database. If nothing is done by default this database will be wiped every restart.
Use either a volume our a mount point to not loose the data.
Change the ARG as required. Increase the version label.
Create a new release.
The image will always target the versions defined in the Prerequisites section.
docker build . -t squadjs-docker
docker run --rm -it \
-v "./test/minimal-config.json:/app/config.json" \
-v "./test/test.log:/logs/SquadGame.log" \
localhost/squadjs-dockerAdd -v "./test/database.sqlite:/app/database.sqlite" \ if you want to persist the sqlite db.