services:
  portainer:
    image: portainer/portainer-ee@sha256:7270f8fc038005ba12d8a444303776357f54307764cfebfcd97ba892b69a3168
    container_name: portainer
    command: -H unix:///var/run/docker.sock
    ports:
      - "9000:9000"
      - "9443:9443"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock"
      - "portainer_data:/data"
    restart: always

  vikunja:
    image: vikunja/vikunja@sha256:1fb8454c9c04f3a86d16f9c8b9fa6cdbf685b6e6e3ff1da1d7ff3374bdbe46ad
    environment:
      VIKUNJA_SERVICE_PUBLICURL: $VIKUNJA_SERVICE_PUBLICURL
      VIKUNJA_DATABASE_TYPE: sqlite
      VIKUNJA_SERVICE_JWTSECRET: $VIKUNJA_SERVICE_JWTSECRET
      VIKUNJA_DATABASE_PATH: /db/vikunja.db
    ports:
      - 3456:3456
    volumes:
      - /home/mafyuh/vikunja/files:/app/vikunja/files
      - /home/mafyuh/vikunja/db:/db
    restart: unless-stopped

volumes:
  portainer_data: