2019-01-26 16:54:45 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: fider network
|
|
|
|
docker_network:
|
|
|
|
name: fider
|
|
|
|
|
|
|
|
- name: fider database volume
|
|
|
|
docker_volume:
|
|
|
|
name: fider_db
|
|
|
|
|
|
|
|
- name: fider database container
|
|
|
|
docker_container:
|
|
|
|
name: fider_db
|
|
|
|
image: postgres:10
|
|
|
|
state: started
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
|
|
|
- name: fider
|
|
|
|
volumes:
|
|
|
|
- fider_db:/var/lib/postgresql/data
|
|
|
|
env:
|
|
|
|
POSTGRES_USER: fider
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.fider }}"
|
|
|
|
|
|
|
|
- name: fider app container
|
|
|
|
docker_container:
|
2019-02-10 07:59:53 +00:00
|
|
|
name: fider
|
2019-01-26 16:54:45 +00:00
|
|
|
image: getfider/fider:stable
|
|
|
|
restart_policy: always
|
|
|
|
networks:
|
|
|
|
- name: fider
|
|
|
|
- name: external_services
|
2019-02-10 07:59:53 +00:00
|
|
|
- name: postfix
|
2019-01-26 16:54:45 +00:00
|
|
|
env:
|
2019-02-28 07:22:38 +00:00
|
|
|
GO_ENV: "production"
|
|
|
|
DATABASE_URL: "postgres://fider:{{ postgres_passwords.fider }}@fider_db:5432/fider?sslmode=disable"
|
2019-01-26 16:54:45 +00:00
|
|
|
JWT_SECRET: "{{ fider_jwt_secret }}"
|
|
|
|
|
|
|
|
EMAIL_NOREPLY: noreply@{{ fider.domain }}
|
|
|
|
EMAIL_SMTP_HOST: "{{ smtp_host }}"
|
|
|
|
EMAIL_SMTP_PORT: "{{ smtp_port }}"
|
2019-02-10 07:59:53 +00:00
|
|
|
EMAIL_SMTP_USERNAME: "noop"
|
|
|
|
EMAIL_SMTP_PASSWORD: "noop"
|
2019-01-26 16:54:45 +00:00
|
|
|
|
|
|
|
VIRTUAL_HOST: "{{ fider.domain }}"
|
|
|
|
LETSENCRYPT_HOST: "{{ fider.domain }}"
|
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email}}"
|