2019-01-26 16:54:45 +00:00
|
|
|
---
|
|
|
|
|
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:
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2021-01-27 12:46:06 +00:00
|
|
|
passit_db:
|
|
|
|
image: "postgres:10"
|
|
|
|
restart: "always"
|
|
|
|
networks:
|
|
|
|
- "passit"
|
|
|
|
volumes:
|
|
|
|
- "{{ passit.volume_folder }}/data:/var/lib/postgresql/data"
|
|
|
|
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:
|
|
|
|
image: "passit/passit:stable"
|
|
|
|
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 }}"
|
|
|
|
DEFAULT_FROM_EMAIL: "noreply@{{ passit.domain }}"
|
|
|
|
EMAIL_CONFIRMATION_HOST: "https://{{ passit.domain }}"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
2021-01-27 12:46:06 +00:00
|
|
|
VIRTUAL_HOST: "{{ passit.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ 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:
|
|
|
|
external: true
|