version: '3.9'

services:
  opengist:
    image: ghcr.io/thomiceli/opengist:latest
    restart: unless-stopped
    ports:
      - "6157:6157" # HTTP port
      - "1023:2222" # SSH port, can be removed if you don't use SSH
    volumes:
      - {{ service_directory }}/data/appdata:/opengist"
      - {{ service_directory }}/data/config/config.yml:/config.yml"
    networks:
      - default
    environment:
      UID: {{ service_user_id }}
      GID: {{ service_group_id }}

networks:
  default:
    ipam:
      driver: default
      config:
        - subnet: 172.4.0.0/16
          gateway: 172.4.0.1