---
factorio_port: 34197
factorio_uid: 845
factorio_gid: 845

factorio_env:
  PORT: "{{ factorio_port }}"
  USERNAME: "{{ vault_factorio.username }}"
  TOKEN: "{{ vault_factorio.token }}"

factorio_json:
  name: "StammtischOnAutomation"
  description: "Private Server"
  tags: []

  max_players: 0
  visibility:
    public: true
    lan: true

  username: "{{ vault_factorio.username }}"
  password: ""
  token: "{{ vault_factorio.token }}"

  game_password: "{{ vault_factorio.game_password }}"
  require_user_verification: true

  max_upload_in_kilobytes_per_second: 0
  max_upload_slots: 0
  max_heartbeats_per_second: 60
  ignore_player_limit_for_returning_players: true
  allow_commands: "admins-only"
  autosave_interval: 10
  autosave_slots: 6
  afk_autokick_interval: 60

  auto_pause: true
  auto_pause_when_players_connect: false
  only_admins_can_pause_the_game: true
  autosave_only_on_server: true
  non_blocking_saving: false

  minimum_segment_size: 25
  minimum_segment_size_peer_count: 20
  maximum_segment_size: 100
  maximum_segment_size_peer_count: 10


factorio_compose:
  watchtower: false
  image: "factoriotools/factorio:stable"
  volumes:
    - data:/factorio
    - ./config:/factorio/config
  file:
    services:
      app:
        ports:
          - "{{ factorio_port }}:{{ factorio_port }}/udp"
          - "27015:27015/tcp"
    volumes:
      data: