attempt to use busybox to host db data.
This commit is contained in:
parent
03a51a1a7d
commit
cad2d8376e
@ -1,10 +1,14 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
volumes:
|
|
||||||
dbdata:
|
|
||||||
driver: rancher-nfs
|
|
||||||
dbinit:
|
|
||||||
driver: rancher-nfs
|
|
||||||
services:
|
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:
|
database:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
@ -13,17 +17,15 @@ services:
|
|||||||
MYSQL_PASSWORD: ${guacamole_password}
|
MYSQL_PASSWORD: ${guacamole_password}
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
||||||
MYSQL_USER: ${guacamole_user}
|
MYSQL_USER: ${guacamole_user}
|
||||||
volumes:
|
volumes_from:
|
||||||
- dbdata:/var/lib/mysql:nocopy
|
- database-data
|
||||||
- dbinit:/docker-entrypoint-initdb.d:nocopy
|
|
||||||
labels:
|
labels:
|
||||||
io.rancher.sidekicks: setup-get-db-script
|
io.rancher.sidekicks: setup-get-db-script
|
||||||
setup-get-db-script:
|
setup-get-db-script:
|
||||||
image: glyptodon/guacamole:0.9.10-incubating
|
image: glyptodon/guacamole:0.9.10-incubating
|
||||||
network_mode: none
|
network_mode: none
|
||||||
volumes:
|
volumes_from:
|
||||||
- dbinit:/docker-entrypoint-initdb.d
|
- database-data
|
||||||
volume_driver: rancher-nfs
|
|
||||||
command:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- -c
|
- -c
|
||||||
|
Loading…
x
Reference in New Issue
Block a user