Quickstart - zhliau/fika-headless-docker GitHub Wiki

This guide assumes some knowledge of docker and SPT + Fika. For a more detailed guide visit

  1. Make a copy of a working Fika client and place it somewhere on your docker host. e.g. /path/to/fika_client

    • A working Fika client is one that can get to the main menu and successfully start a raid. You can use the client files you are currently playing with.
  2. Copy the Fika.Headless.dll plugin file (Fika.Dedicated.dll if you're on SPT version < 3.11) into the client's BepInEx/plugins folder.

  3. Generate a headless client profile on your SPT server by updating the headless.profiles.amount value in the fika.jsonc config file located in your SPT server files user/mods/fika_server/assets/configs/ directory.

    "headless": {
      "profiles": {
        "amount": 1
       },
       // ...
     }
    

    Save changes, and restart the SPT server to generate the headless profile.

  4. Copy the headless profile's ProfileID string. This is the filename of the profile located in your SPT server files user/profiles directory, without the .json extension.

  5. Run the docker image, providing the following environment variables:

    • PROFILE_ID - Profile ID you generated in step 3 and copied in step 4
    • SERVER_URL - The IP or URL of your SPT server
    • SERVER_PORT - The port that your SPT server is listening on Additionally,
    • Expose the port 25565 from the container to the host.
    • Mount the path to the copy of the Fika client that you created in step 1 to the container's /opt/tarkov directory

    docker

    docker run --name fika_headless \
       -v /path/to/fika:/opt/tarkov \
       -e PROFILE_ID=deadbeeffeed \
       -e SERVER_URL=your.spt.server.ip \
       -e SERVER_PORT=6969 \
       -p 25565:25565/udp \
       ghcr.io/zhliau/fika-headless-docker:latest
    

    docker-compose

    services:
       fika_headless:
         image: ghcr.io/zhliau/fika-headless-docker:latest
         container_name: fika_headless
         volumes:
           - /path/to/fika_client:/opt/tarkov
         environment:
           - PROFILE_ID=deadbeeffeed
           - SERVER_URL=your.spt.server.ip
           - SERVER_PORT=6969
         ports:
           - 25565:25565/udp