svc:
  domain: "wiki.serguzim.me"
  name: wiki-js
  port: 3000
  db:
    host: "{{ postgres.host }}"
    port: "{{ postgres.port }}"
    user: "{{ vault_wiki_js.db.user }}"
    pass: "{{ vault_wiki_js.db.pass }}"
    name: "wikijs"

svc_env:
  DB_TYPE: postgres
  DB_HOST: "{{ svc.db.host }}"
  DB_PORT: "{{ svc.db.port }}"
  DB_USER: "{{ svc.db.user }}"
  DB_PASS: "{{ svc.db.pass }}"
  DB_NAME: "{{ svc.db.name }}"
  DB_SSL: 1

compose:
  watchtower: true
  image: requarks/wiki
  env: true