Compare commits

...

2 commits

Author SHA1 Message Date
Víðir Valberg Guðmundsson 1449185591 Remove byro. 2023-09-25 09:48:29 +02:00
Víðir Valberg Guðmundsson 191ba1e011 Bump mastodon to 4.1.9. 2023-09-25 09:48:29 +02:00
2 changed files with 1 additions and 86 deletions

View file

@ -180,7 +180,7 @@ services:
file: mastodon.yml
domain: "social.{{ base_domain }}"
volume_folder: "{{ volume_root_folder }}/mastodon"
version: v4.1.4
version: v4.1.9
postgres_version: 14-alpine
redis_version: 6-alpine
allowed_sender_domain: true

View file

@ -1,85 +0,0 @@
---
- name: ensure byro data folder exists
file:
path: "{{ services.byro.volume_folder }}"
state: directory
- name: create env file
template:
src: byro.env.j2
dest: "{{ services.byro.volume_folder }}/env"
- name: deploy entrypoint file
copy:
src: byro_deploy_entrypoint.sh
dest: "{{ services.byro.volume_folder}}/data/deploy_entrypoint.sh"
mode: "preserve"
- name: run byro
docker_compose:
project_name: "byro member system"
pull: yes
definition:
version: "3.8"
services:
manage:
image: ghcr.io/valberg/byro:add_missing_jquery_ui_images
entrypoint: "/var/byro/data/deploy_entrypoint.sh"
restart: "no"
volumes:
- "{{ services.byro.volume_folder }}/data:/var/byro/data"
- "{{ services.byro.volume_folder }}/static.dist:/byro/static.dist:rw"
networks:
- byro
- external_services
- postfix
env_file: "{{ services.byro.volume_folder }}/env"
gunicorn:
image: ghcr.io/byro/byro:master
restart: unless-stopped
working_dir: '/byro'
entrypoint:
- 'gunicorn'
command: >
byro.wsgi --name byro --workers 4
--max-requests 1200 --max-requests-jitter 50
--log-level=info
--bind=0.0.0.0:8345
links:
- postgres
depends_on:
postgres:
condition: service_healthy
volumes:
- "{{ services.byro.volume_folder }}/data:/var/byro/data"
- "{{ services.byro.volume_folder }}/static.dist:/byro/static.dist:rw"
networks:
- byro
- external_services
- postfix
env_file: "{{ services.byro.volume_folder }}/env"
postgres:
image: postgres:{{ services.byro.postgres_version }}
volumes:
- "{{ services.byro.volume_folder }}/postgres/:/var/lib/postgresql/data"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U byro"]
interval: 5s
timeout: 5s
retries: 5
environment:
POSTGRES_PASSWORD: "{{ postgres_passwords.byro }}"
networks:
- byro
networks:
byro:
external_services:
external: true
postfix:
external: true