2019-01-26 16:54:45 +00:00
|
|
|
---
|
|
|
|
|
2021-02-01 20:06:23 +00:00
|
|
|
- name: setup passit containers
|
2022-11-26 08:52:41 +00:00
|
|
|
community.docker.docker_compose:
|
|
|
|
project_name: passit
|
|
|
|
pull: true
|
2021-01-27 12:46:06 +00:00
|
|
|
definition:
|
2022-11-26 08:52:41 +00:00
|
|
|
version: '3.6'
|
2021-01-27 12:46:06 +00:00
|
|
|
services:
|
|
|
|
passit_db:
|
2022-11-26 08:52:41 +00:00
|
|
|
image: postgres:10
|
|
|
|
restart: always
|
2021-01-27 12:46:06 +00:00
|
|
|
networks:
|
2022-11-26 08:52:41 +00:00
|
|
|
- passit
|
2021-01-27 12:46:06 +00:00
|
|
|
volumes:
|
2022-11-26 08:52:41 +00:00
|
|
|
- '{{ services.passit.volume_folder }}/data:/var/lib/postgresql/data'
|
2021-01-27 12:46:06 +00:00
|
|
|
environment:
|
2022-11-26 08:52:41 +00:00
|
|
|
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:
|
2022-11-26 08:52:41 +00:00
|
|
|
image: passit/passit:{{ services.passit.version }}
|
|
|
|
command: bin/start.sh
|
|
|
|
restart: always
|
2021-01-27 12:46:06 +00:00
|
|
|
networks:
|
2022-11-26 08:52:41 +00:00
|
|
|
- passit
|
|
|
|
- postfix
|
|
|
|
- external_services
|
2021-01-27 12:46:06 +00:00
|
|
|
environment:
|
2022-11-26 08:52:41 +00:00
|
|
|
DATABASE_URL: postgres://passit:{{ postgres_passwords.passit }}@passit_db:5432/passit
|
|
|
|
SECRET_KEY: '{{ passit_secret_key }}'
|
2021-01-27 12:46:06 +00:00
|
|
|
IS_DEBUG: 'False'
|
2022-11-26 08:52:41 +00:00
|
|
|
EMAIL_URL: smtp://noop@{{ smtp_host }}:{{ smtp_port }}
|
|
|
|
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 }}'
|
|
|
|
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
|