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>
24 lines
753 B
YAML
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
|