XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
UTF-8
services:
    spaceninjaserver:
        image: openwf/spaceninjaserver:latest

        volumes:
            - ./docker-data/conf:/app/conf
            - ./docker-data/static-data:/app/static/data
            - ./docker-data/logs:/app/logs
            - ./.well-known:/app/.well-known
        ports:
            # The lefthand value determines the port you actually connect to. Within the container, SpaceNinjaServer will always use 80 and 443 (righthand values).
            - 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`.

        environment:
            - CHOKIDAR_USEPOLLING=true
        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