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 user: "10100:10100" 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: 'Opendev Pastebin'