1a227489e2
In order to avoid unnecessary browser requests to other sites, install a copy of the OpenDev logo on the Lodgeit server and serve it from there rather than pointing at one served from Gitea. Change-Id: I4c3678a1de8ca4a41cd0c64aab71b2e0e25373af
38 lines
1.1 KiB
Django/Jinja
38 lines
1.1 KiB
Django/Jinja
version: '2'
|
|
|
|
services:
|
|
mariadb:
|
|
image: docker.io/library/mariadb:10.4
|
|
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 }}"
|
|
command: [
|
|
'--wait_timeout=28800',
|
|
]
|
|
volumes:
|
|
- /var/lib/lodgeit/mariadb:/var/lib/mysql
|
|
logging:
|
|
driver: syslog
|
|
options:
|
|
tag: "docker-mariadb"
|
|
lodgeit:
|
|
image: docker.io/opendevorg/lodgeit
|
|
depends_on:
|
|
- mariadb
|
|
restart: always
|
|
network_mode: host
|
|
command: ['/bin/bash', '-c', 'echo "*** Starting"; sleep 30; /usr/local/bin/uwsgi']
|
|
logging:
|
|
driver: syslog
|
|
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">'
|
|
|