Update docker-compose.yml
Switched to rancher-nfs again.
This commit is contained in:
parent
acb97f0b9f
commit
01aa82ac1c
@ -8,31 +8,22 @@ services:
|
||||
MYSQL_PASSWORD: ${guacamole_password}
|
||||
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
||||
MYSQL_USER: ${guacamole_user}
|
||||
volumes_from:
|
||||
- db-data
|
||||
volumes:
|
||||
- dbdata:/var/lib/mysql
|
||||
- dbinit:/docker-entrypoint-initdb.d
|
||||
labels:
|
||||
io.rancher.sidekicks: setup-get-db-script,db-data
|
||||
io.rancher.sidekicks: setup-get-db-script
|
||||
setup-get-db-script:
|
||||
image: glyptodon/guacamole
|
||||
network_mode: none
|
||||
volumes_from:
|
||||
- db-data
|
||||
volumes:
|
||||
- dbinit:/docker-entrypoint-initdb.d
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- /opt/guacamole/bin/initdb.sh --mysql > /docker-entrypoint-initdb.d/initdb.sql
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
||||
db-data:
|
||||
image: mariadb
|
||||
network_mode: none
|
||||
volumes:
|
||||
- /var/lib/mysql
|
||||
- /docker-entrypoint-initdb.d
|
||||
command:
|
||||
- /bin/echo
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
||||
guacd:
|
||||
image: glyptodon/guacd
|
||||
guacamole:
|
||||
@ -50,3 +41,8 @@ services:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- cd /usr/local/tomcat/webapps;rm -rf ROOT/; ln -s guacamole.war ROOT.war; /opt/guacamole/bin/start.sh;
|
||||
volumes:
|
||||
dbdata:
|
||||
driver: rancher-nfs
|
||||
dbinit:
|
||||
driver: rancher-nfs
|
||||
|
Loading…
x
Reference in New Issue
Block a user