attempt to use busybox to host db data.

This commit is contained in:
Kevin Xu 2017-11-15 21:22:26 -08:00 committed by GitHub
parent 03a51a1a7d
commit cad2d8376e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,14 @@
version: '2'
volumes:
dbdata:
driver: rancher-nfs
dbinit:
driver: rancher-nfs
services:
database-data:
image: busybox
labels:
io.rancher.container.start_once: 'true'
net: none
entrypoint: /bin/true
volumes:
- /var/lib/mysql
- /docker-entrypoint-initdb.d
database:
image: mariadb
environment:
@ -13,17 +17,15 @@ services:
MYSQL_PASSWORD: ${guacamole_password}
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
MYSQL_USER: ${guacamole_user}
volumes:
- dbdata:/var/lib/mysql:nocopy
- dbinit:/docker-entrypoint-initdb.d:nocopy
volumes_from:
- database-data
labels:
io.rancher.sidekicks: setup-get-db-script
setup-get-db-script:
image: glyptodon/guacamole:0.9.10-incubating
network_mode: none
volumes:
- dbinit:/docker-entrypoint-initdb.d
volume_driver: rancher-nfs
volumes_from:
- database-data
command:
- bash
- -c