system-config/playbooks/roles/lodgeit/templates/docker-compose.yaml.j2
Clark Boylan 8452d3e072 Reapply "Pull lodgeit from quay.io"
This reverts commit ce67e83dbe47ca4bf341914ecb09d378020cfe70.

We're moving this image back to quay.io in the depends-on. This is all
made possible because paste02 is running on noble with podman and docker
compose which should allow us to do speculative image testing without
hosting on docker hub. This container image should be a good test of
that assumption.

Depends-On: https://review.opendev.org/c/opendev/lodgeit/+/939385
Change-Id: I2e0e7bbfc3eef4e7b21d2e689d722f797f80b309
2025-01-21 15:49:15 -08:00

40 lines
1.2 KiB
Django/Jinja

version: '2'
services:
mariadb:
image: quay.io/opendevmirror/mariadb:10.11
network_mode: host
restart: always
environment:
MYSQL_ROOT_PASSWORD: "{{ lodgeit_db_password }}"
MYSQL_DATABASE: "{{ lodgeit_db_dbname }}"
MYSQL_USER: "{{ lodgeit_db_username }}"
MYSQL_PASSWORD: "{{ lodgeit_db_password }}"
MARIADB_AUTO_UPGRADE: 1
command: [
'--wait_timeout=28800',
]
volumes:
- /var/lib/lodgeit/mariadb:/var/lib/mysql
logging:
driver: journald
options:
tag: "docker-mariadb"
lodgeit:
image: quay.io/opendevorg/lodgeit
depends_on:
- mariadb
restart: always
network_mode: host
user: "10100:10100"
command: ['/bin/bash', '-c', 'echo "*** Starting"; sleep 30; /usr/local/bin/uwsgi']
logging:
driver: journald
options:
tag: "docker-lodgeit"
environment:
LODGEIT_DBURI: 'mysql+pymysql://{{ lodgeit_db_username }}:{{ lodgeit_db_password }}@127.0.0.1:3306/{{ lodgeit_db_dbname }}'
LODGEIT_SECRET_KEY: '{{ lodgeit_secret_key }}'
LODGEIT_TITLE_OVERRIDE: '<img src="/assets/opendev.svg" style="width: 100px; padding-bottom:10px; margin-left:20px;" alt="Opendev Pastebin">'