forked from data.coop/ansible
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
---
|
|
|
|
- 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_DB: somethingelse
|
|
POSTGRES_USER: passit
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.passit }}"
|
|
|
|
- name: passit app container
|
|
docker_container:
|
|
image: passit/passit:stable
|
|
command: bin/start.sh
|
|
restart_policy: always
|
|
published_ports:
|
|
- "8000:8080"
|
|
networks:
|
|
- name: passit
|
|
- name: external_services
|
|
env:
|
|
DATABASE_URL: "postgres://passit:{{ postgres_passwords.passit }}@db:5432/passit"
|
|
SECRET_KEY: "{{ passit_secret_key }}"
|
|
IS_DEBUG: 'False'
|
|
EMAIL_URL: smtp://{{ smtp_user }}:{{ smtp_password }}@{{ smtp_host }}:{{ smtp_port}}
|
|
DEFAULT_FROM_EMAIL: "noreply@{{ passit.domain }}"
|
|
EMAIL_CONFIRMATION_HOST: "https://{{ passit.domain }}"
|
|
|
|
VIRTUAL_HOST: "{{ passit.domain }}"
|
|
LETSENCRYPT_HOST: "{{ passit.domain }}"
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|