Satisfactory

services:
    satisfactory-server:
        container_name: 'satisfactory-home'
        hostname: 'satisfactory-home'
        image: 'wolveix/satisfactory-server:latest'
        network_mode: host
        ports:
            - '7777:7777/udp'
            - '7777:7777/tcp'
        volumes:
            - './satisfactory-home/config:/config'
        environment:
            MAXPLAYERS: 4
            PGID: 1000
            PUID: 1000
            ROOTLESS: false
            STEAMBETA: false
            SKIPUPDATE: false
            SERVERGAMEPORT: 7777
            TZ: Europe/Paris
        labels:
          # Watchtower
          - "com.centurylinklabs.watchtower.enable=true"
        restart: unless-stopped
        healthcheck:
          test: bash /healthcheck.sh
          interval: 30s
          timeout: 10s
          retries: 3
          start_period: 120s
        deploy:
          resources:
            limits:
              memory: 16G
              cpus: "7.0"  # Le container peut utiliser jusqu'à 8 CPU
            reservations:
              memory: 12G
              cpus: "5.0"  # Réserve 6 CPU pour garantir une performance minimale


    # only needed for mods
    sftp-server:
        container_name: 'sftp-server'
        image: 'atmoz/sftp:latest'
        volumes:
            - './satisfactory/config:/home/login/gamefiles'
        ports:
            - '2222:22'
        # set the user and password, and the user's UID (this should match the PUID and PGID of the satisfactory-server container)
        command: 'login:pwd:1000'
        labels:
          # Watchtower
          - "com.centurylinklabs.watchtower.enable=true"

Mis à jour