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

services:
  app:
    image: jgeusebroek/privatebin:{{ services.privatebin.version }}
    restart: unless-stopped
    volumes:
      - "./cfg:/privatebin/cfg"
      - "./data:/privatebin/data"
    networks:
      - external_services
    environment:
      VIRTUAL_HOST: "{{ services.privatebin.domain }}"
      LETSENCRYPT_HOST: "{{ services.privatebin.domain }}"
      LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"

networks:
  external_services:
    external: true