2022-12-28 16:17:32 +00:00
|
|
|
# vim: ft=yaml.ansible
|
|
|
|
---
|
2022-11-07 18:05:49 +00:00
|
|
|
- name: Create rallly volume folders
|
2022-11-07 17:38:08 +00:00
|
|
|
file:
|
2022-11-26 08:15:18 +00:00
|
|
|
name: "{{ services.rallly.volume_folder }}/postgres"
|
2022-11-07 17:38:08 +00:00
|
|
|
state: directory
|
|
|
|
|
2022-11-07 18:05:49 +00:00
|
|
|
- name: Copy Rallly environment file
|
|
|
|
template:
|
2022-11-25 22:57:35 +00:00
|
|
|
src: files/configs/rallly/env_file.j2
|
2022-11-26 08:15:18 +00:00
|
|
|
dest: "{{ services.rallly.volume_folder }}/env_file"
|
2022-11-07 18:05:49 +00:00
|
|
|
|
2022-11-07 18:08:54 +00:00
|
|
|
- name: Set up Rallly
|
2022-11-07 17:38:08 +00:00
|
|
|
docker_compose:
|
|
|
|
project_name: "rallly"
|
|
|
|
pull: "yes"
|
|
|
|
definition:
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
2022-11-09 19:41:41 +00:00
|
|
|
rallly_db:
|
2022-11-07 17:38:08 +00:00
|
|
|
image: "postgres:14-alpine"
|
2022-11-22 21:47:22 +00:00
|
|
|
restart: "always"
|
2022-11-07 17:38:08 +00:00
|
|
|
shm_size: "256mb"
|
|
|
|
networks:
|
|
|
|
rallly_internal:
|
|
|
|
volumes:
|
2022-11-26 08:15:18 +00:00
|
|
|
- "{{ services.rallly.volume_folder }}/postgres:/var/lib/postgresql/data"
|
2022-11-07 17:38:08 +00:00
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: "{{ postgres_passwords.rallly }}"
|
|
|
|
POSTGRES_DB: "rallly_db"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 5
|
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: "true"
|
|
|
|
|
|
|
|
rallly:
|
2022-11-26 08:15:18 +00:00
|
|
|
image: "lukevella/rallly:{{ services.rallly.version }}"
|
2022-11-22 21:47:22 +00:00
|
|
|
restart: "always"
|
2022-11-07 17:38:08 +00:00
|
|
|
networks:
|
|
|
|
rallly_internal:
|
|
|
|
external_services:
|
2022-11-07 18:05:49 +00:00
|
|
|
postfix:
|
2022-11-07 17:38:08 +00:00
|
|
|
depends_on:
|
|
|
|
rallly_db:
|
|
|
|
condition: "service_healthy"
|
2022-11-07 18:05:49 +00:00
|
|
|
env_file:
|
2022-11-26 08:15:18 +00:00
|
|
|
- "{{ services.rallly.volume_folder }}/env_file"
|
2022-11-09 19:41:41 +00:00
|
|
|
environment:
|
2022-11-26 08:15:18 +00:00
|
|
|
VIRTUAL_HOST: "{{ services.rallly.domain }}"
|
2022-11-10 18:32:39 +00:00
|
|
|
VIRTUAL_PORT: "3000"
|
2022-11-26 08:15:18 +00:00
|
|
|
LETSENCRYPT_HOST: "{{ services.rallly.domain }}"
|
2022-11-09 19:41:41 +00:00
|
|
|
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
|
2022-11-07 17:38:08 +00:00
|
|
|
labels:
|
|
|
|
com.centurylinklabs.watchtower.enable: "true"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
rallly_internal:
|
|
|
|
internal: true
|
|
|
|
external_services:
|
|
|
|
external: true
|
2022-11-07 18:05:49 +00:00
|
|
|
postfix:
|
|
|
|
external: true
|