# vim: ft=yaml.docker-compose
version: "3.8"

services:
  app:
    image: portainer/portainer-ee:{{ services.portainer.version }}
    restart: always
    networks:
      - external_services
    volumes:
      - ".:/data"
      - "/var/run/docker.sock:/var/run/docker.sock:rw"
    environment:
      VIRTUAL_HOST: "{{ services.portainer.domain }}"
      VIRTUAL_PORT: "9000"
      LETSENCRYPT_HOST: "{{ services.portainer.domain }}"
      LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"

networks:
  external_services:
    external: true