SpaceNinjaServer/docker-compose.yml
Sainan bb1d6a98c5
Some checks failed
Build / build (push) Successful in 1m51s
Build Docker image / docker (push) Has been cancelled
chore: make docker setup compatible with regular mongodb data (#2944)
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.

Reviewed-on: #2944
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
2025-10-28 00:50:01 -07:00

24 lines
753 B
YAML

services:
spaceninjaserver:
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