Test new compose
This commit is contained in:
parent
fe3cc1efde
commit
9111bc7592
2 changed files with 27 additions and 0 deletions
|
@ -6,4 +6,13 @@ class eid::idm_db (
|
|||
from => 'any',
|
||||
port => '80',
|
||||
}
|
||||
|
||||
sunet::docker_compose { 'mariadb':
|
||||
content => template('eid/idm_db/docker-compose.yml.erb'),
|
||||
service_name => 'mariadb',
|
||||
compose_dir => '/opt/',
|
||||
compose_filename => 'docker-compose.yml',
|
||||
description => 'mariadb',
|
||||
docker_class => 'sunet::dockerhost2',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
|
||||
db:
|
||||
image: docker.sunet.se/drive/mariadb:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- /etc/mariadb/backups:/backups
|
||||
- /etc/mariadb/conf:/etc/mysql/mariadb.conf.d
|
||||
- /etc/mariadb/datadir:/var/lib/mysql
|
||||
- /etc/mariadb/init:/docker-entrypoint-initdb.d
|
||||
- /etc/mariadb/scripts:/scripts
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=NOT_SET_IN_HIERA
|
||||
- BOOTSTRAP=
|
||||
- FORCE_BOOTSTRAP=0
|
||||
tty: true
|
Loading…
Add table
Reference in a new issue