48 lines
1.4 KiB
YAML

- name: Container data folder for oauth keys
ansible.builtin.include_role:
role: docker/container-data
vars:
dir_name: "authentikate"
- name: Make keys folder in container data
ansible.builtin.file:
path: "{{ container_data_base_path }}/authentikate/keys"
state: directory
mode: '0777'
- name: Make avatars folder in container data
ansible.builtin.file:
path: "{{ container_data_base_path }}/authentikate/avatars"
state: directory
mode: '0777'
- name: Create database
ansible.builtin.include_role:
role: app/database
vars:
app_name: "authentikate"
- name: Deploy container
community.docker.docker_container:
image: gitgud.foo/thegrind/authentikate:latest
name: authentikate
pull: true
state: started
ports:
- "{{ port }}:8000"
env:
APP_URL: "https://auth.melab.fyi"
APP_NAME: "The Grind Auth"
APP_TIMEZONE: "America/New_York"
APP_KEY: "base64:5T2vyytKe4gILICvEoNqBxoiSFwrY4qZ0/264gDHJxI="
OCTANE_HTTPS: "true"
DB_CONNECTION: "pgsql"
DB_HOST: "{{ pg_host }}"
DB_PORT: "{{ pg_port | string }}"
DB_DATABASE: "authentikate"
DB_USERNAME: "authentikate"
DB_PASSWORD: "password"
LOG_CHANNEL: daily
volumes:
- "{{container_data_base_path}}/authentikate/keys:/app/storage/oauth"
- "{{container_data_base_path}}/authentikate/avatars:/app/storage/avatars"