version: '2.2'
services:
  shlink:
    image: shlinkio/shlink:stable
    restart: always
    environment:
      TZ: "Europe/Amsterdam"
      DEFAULT_DOMAIN: via.ixvd.net
      DB_DRIVER: maria
      DB_USER: shlink
      DB_NAME: shlink
      DB_PASSWORD: shlink
      DB_HOST: shlink-db
    env_file:
      - /etc/ixvd/secrets/env/shlink.env
    depends_on:
      - shlink-db
    networks:
      - proxy
      - internal
  
  shlink-db:
    image: mariadb:10.8
    restart: always
    environment:
      MARIADB_ROOT_PASSWORD: <MARIADB_ROOT_PASSWORD>
      MARIADB_DATABASE: shlink
      MARIADB_USER: shlink
      MARIADB_PASSWORD: shlink
    volumes:
      - /srv/shlink/data:/var/lib/mysql
    networks:
      - internal