2019-01-26 16:54:45 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: passit network
|
|
|
|
docker_network:
|
|
|
|
name: passit
|
|
|
|
|
|
|
|
- name: passit database volume
|
|
|
|
docker_volume:
|
|
|
|
name: passit_db
|
|
|
|
|
|
|
|
- name: passit database container
|
|
|
|
docker_container:
|
|
|
|
name: passit_db
|
|
|
|
image: postgres:10
|
|
|
|
state: started
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
|
|
|
- name: passit
|
|
|
|
volumes:
|
|
|
|
- passit_db:/var/lib/postgresql/data
|
|
|
|
env:
|
|
|
|
POSTGRES_USER: passit
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}"
|
|
|
|
|
|
|
|
- name: passit app container
|
|
|
|
docker_container:
|
2019-02-10 07:59:53 +00:00
|
|
|
name: passit
|
2019-01-26 16:54:45 +00:00
|
|
|
image: passit/passit:stable
|
|
|
|
command: bin/start.sh
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
|
|
|
- name: passit
|
2019-02-10 07:59:53 +00:00
|
|
|
- name: postfix
|
2019-01-26 16:54:45 +00:00
|
|
|
- name: external_services
|
|
|
|
env:
|
2019-02-10 07:59:53 +00:00
|
|
|
DATABASE_URL: "postgres://passit:{{ postgres_passwords.passit }}@passit_db:5432/passit"
|
2019-01-26 16:54:45 +00:00
|
|
|
SECRET_KEY: "{{ passit_secret_key }}"
|
|
|
|
IS_DEBUG: 'False'
|
2019-02-10 07:59:53 +00:00
|
|
|
EMAIL_URL: smtp://noop@{{ smtp_host }}:{{ smtp_port }}
|
2019-01-26 16:54:45 +00:00
|
|
|
DEFAULT_FROM_EMAIL: "noreply@{{ passit.domain }}"
|
|
|
|
EMAIL_CONFIRMATION_HOST: "https://{{ passit.domain }}"
|
|
|
|
|
|
|
|
VIRTUAL_HOST: "{{ passit.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ passit.domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|