
This adds a dockerfile to build an opendevorg/refstack image as well as the jobs to build and publish it. Change-Id: Icade6c713fa9bf6ab508fd4d8d65debada2ddb30
25 lines
714 B
Django/Jinja
25 lines
714 B
Django/Jinja
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
mariadb:
|
|
image: docker.io/library/mariadb:10.4
|
|
network_mode: host
|
|
restart: always
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: "{{ refstack_root_db_password }}"
|
|
MYSQL_DATABASE: refstack
|
|
MYSQL_USER: "{{ refstack_db_username }}"
|
|
MYSQL_PASSWORD: "{{ refstack_db_password }}"
|
|
refstack-api:
|
|
depends_on:
|
|
- mariadb
|
|
image: opendevorg/refstack:latest
|
|
network_mode: host
|
|
restart: always
|
|
volumes:
|
|
- /var/refstack/refstack.conf:/etc/refstack.conf
|
|
- /var/refstack/config.json:/refstack-ui/app/config.json
|
|
- /var/lib/refstack/data:/var/run/data
|