2022-12-29 21:13:31 +00:00
|
|
|
# vim: ft=yaml.ansible
|
2019-01-26 16:54:45 +00:00
|
|
|
---
|
2023-01-22 01:00:53 +00:00
|
|
|
- name: Create directory for Passit data
|
|
|
|
file:
|
|
|
|
name: "{{ services.passit.volume_folder }}/data"
|
|
|
|
owner: '70'
|
|
|
|
group: root
|
|
|
|
state: directory
|
|
|
|
|
2021-02-01 20:06:23 +00:00
|
|
|
- name: setup passit containers
|
|
|
|
docker_compose:
|
2021-01-27 12:46:06 +00:00
|
|
|
project_name: "passit"
|
|
|
|
pull: "yes"
|
|
|
|
definition:
|
|
|
|
version: "3.6"
|
|
|
|
services:
|
|
|
|
passit_db:
|
2022-12-28 15:19:07 +00:00
|
|
|
image: "postgres:{{ services.passit.postgres_version }}"
|
2021-01-27 12:46:06 +00:00
|
|
|
restart: "always"
|
|
|
|
networks:
|
|
|
|
- "passit"
|
|
|
|
volumes:
|
2022-11-26 08:15:18 +00:00
|
|
|
- "{{ services.passit.volume_folder }}/data:/var/lib/postgresql/data"
|
2021-01-27 12:46:06 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "passit"
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2021-01-27 12:46:06 +00:00
|
|
|
passit_app:
|
2023-01-22 01:00:53 +00:00
|
|
|
image: "passit/passit@sha256:c4b96bc67222936f58f344d5dd1020227ad8e11ad5f82ed3cbf0bcfa8fe9b2e7" #:{{ services.passit.version }}"
|
2021-01-27 12:46:06 +00:00
|
|
|
command: "bin/start.sh"
|
|
|
|
restart: "always"
|
|
|
|
networks:
|
|
|
|
- "passit"
|
|
|
|
- "postfix"
|
|
|
|
- "external_services"
|
|
|
|
environment:
|
|
|
|
DATABASE_URL: "postgres://passit:{{ postgres_passwords.passit }}@passit_db:5432/passit"
|
|
|
|
SECRET_KEY: "{{ passit_secret_key }}"
|
|
|
|
IS_DEBUG: 'False'
|
|
|
|
EMAIL_URL: "smtp://noop@{{ smtp_host }}:{{ smtp_port }}"
|
2022-11-26 08:15:18 +00:00
|
|
|
DEFAULT_FROM_EMAIL: "noreply@{{ services.passit.domain }}"
|
|
|
|
EMAIL_CONFIRMATION_HOST: "https://{{ services.passit.domain }}"
|
|
|
|
FIDO_SERVER_ID: "{{ services.passit.domain }}"
|
|
|
|
VIRTUAL_HOST: "{{ services.passit.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ services.passit.domain }}"
|
2021-01-27 12:46:06 +00:00
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2021-01-27 12:46:06 +00:00
|
|
|
networks:
|
|
|
|
passit:
|
|
|
|
postfix:
|
|
|
|
external: true
|
|
|
|
external_services:
|
2022-11-12 18:21:58 +00:00
|
|
|
external: true
|