2022-08-09 11:50:49 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: run membersystem containers
|
2022-11-26 08:52:41 +00:00
|
|
|
community.docker.docker_compose:
|
|
|
|
project_name: member.data.coop
|
|
|
|
pull: true
|
2022-08-09 11:50:49 +00:00
|
|
|
definition:
|
2022-11-26 08:52:41 +00:00
|
|
|
version: '3'
|
2022-08-09 11:50:49 +00:00
|
|
|
services:
|
|
|
|
backend:
|
2022-11-24 23:16:10 +00:00
|
|
|
image: docker.data.coop/membersystem:latest
|
2022-11-22 21:39:34 +00:00
|
|
|
restart: always
|
2022-08-09 11:50:49 +00:00
|
|
|
user: $UID:$GID
|
|
|
|
tty: true
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
networks:
|
|
|
|
- membersystem
|
|
|
|
- external_services
|
|
|
|
- postfix
|
|
|
|
environment:
|
2022-11-26 08:52:41 +00:00
|
|
|
SECRET_KEY: '{{ membersystem_secrets.secret_key }}'
|
|
|
|
DATABASE_URL: postgres://postgres:{{ postgres_passwords.membersystem
|
|
|
|
}}@postgres:5432/postgres
|
2022-08-09 11:50:49 +00:00
|
|
|
POSTGRES_HOST: postgres
|
|
|
|
POSTGRES_PORT: 5432
|
2022-11-26 08:52:41 +00:00
|
|
|
EMAIL_BACKEND: django.core.mail.backends.smtp.EmailBackend
|
|
|
|
EMAIL_URL: smtp://noop@{{ smtp_host }}:{{ smtp_port }}
|
|
|
|
VIRTUAL_HOST: '{{ services.membersystem.domain }}'
|
|
|
|
VIRTUAL_PORT: '8000'
|
|
|
|
LETSENCRYPT_HOST: '{{ services.membersystem.domain }}'
|
|
|
|
LETSENCRYPT_EMAIL: '{{ letsencrypt_email }}'
|
|
|
|
ALLOWED_HOSTS: '{{ services.membersystem.domain }}'
|
|
|
|
CSRF_TRUSTED_ORIGINS: https://{{ services.membersystem.domain }}
|
|
|
|
DJANGO_ADMINS: '{{ services.membersystem.django_admins }}'
|
|
|
|
DEFAULT_FROM_EMAIL: noreply@{{ services.membersystem.domain }}
|
2022-08-09 11:50:49 +00:00
|
|
|
labels:
|
2022-11-26 08:52:41 +00:00
|
|
|
com.centurylinklabs.watchtower.enable: 'true'
|
2022-08-09 11:50:49 +00:00
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:13-alpine
|
2022-11-22 21:39:34 +00:00
|
|
|
restart: always
|
2022-08-09 11:50:49 +00:00
|
|
|
volumes:
|
2022-11-26 08:52:41 +00:00
|
|
|
- '{{ volume_root_folder }}/membersystem/postgres/data:/var/lib/postgresql/data'
|
2022-08-09 11:50:49 +00:00
|
|
|
networks:
|
|
|
|
- membersystem
|
|
|
|
environment:
|
2022-11-26 08:52:41 +00:00
|
|
|
POSTGRES_PASSWORD: '{{ postgres_passwords.membersystem }}'
|
2022-08-09 11:50:49 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
membersystem:
|
|
|
|
external_services:
|
|
|
|
external: true
|
|
|
|
postfix:
|
|
|
|
external: true
|