All checks were successful
Build / build (pull_request) Successful in 1m51s
We still need to address the database as 'mongodb' instead of '127.0.0.1' inside of the container, but otherwise the MongoDB data folder can simply be copied over. Existing setups shouldn't be affected by this change.
25 lines
843 B
YAML
25 lines
843 B
YAML
services:
|
|
spaceninjaserver:
|
|
# The image to use. If you have an ARM CPU, replace 'latest' with 'latest-arm64'.
|
|
image: openwf/spaceninjaserver:latest
|
|
|
|
volumes:
|
|
- ./docker-data/conf:/app/conf
|
|
- ./docker-data/static-data:/app/static/data
|
|
- ./docker-data/logs:/app/logs
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
|
|
# Normally, the image is fetched from Docker Hub, but you can use the local Dockerfile by removing "image" above and adding this:
|
|
#build: .
|
|
# Works best when using `docker-compose up --force-recreate --build`.
|
|
|
|
depends_on:
|
|
- mongodb
|
|
mongodb:
|
|
image: docker.io/library/mongo:8.0.0-noble
|
|
volumes:
|
|
- ./docker-data/database:/data/db
|
|
command: mongod --quiet --logpath /dev/null
|