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_PASSWORD: ${guacamole_password}
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
MYSQL_RANDOM_ROOT_PASSWORD: 'true'
|
||||||
MYSQL_USER: ${guacamole_user}
|
MYSQL_USER: ${guacamole_user}
|
||||||
volumes_from:
|
volumes:
|
||||||
- db-data
|
- dbdata:/var/lib/mysql
|
||||||
|
- dbinit:/docker-entrypoint-initdb.d
|
||||||
labels:
|
labels:
|
||||||
io.rancher.sidekicks: setup-get-db-script,db-data
|
io.rancher.sidekicks: setup-get-db-script
|
||||||
setup-get-db-script:
|
setup-get-db-script:
|
||||||
image: glyptodon/guacamole
|
image: glyptodon/guacamole
|
||||||
network_mode: none
|
network_mode: none
|
||||||
volumes_from:
|
volumes:
|
||||||
- db-data
|
- dbinit:/docker-entrypoint-initdb.d
|
||||||
command:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- -c
|
- -c
|
||||||
- /opt/guacamole/bin/initdb.sh --mysql > /docker-entrypoint-initdb.d/initdb.sql
|
- /opt/guacamole/bin/initdb.sh --mysql > /docker-entrypoint-initdb.d/initdb.sql
|
||||||
labels:
|
labels:
|
||||||
io.rancher.container.start_once: 'true'
|
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:
|
guacd:
|
||||||
image: glyptodon/guacd
|
image: glyptodon/guacd
|
||||||
guacamole:
|
guacamole:
|
||||||
@ -49,4 +40,9 @@ services:
|
|||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- cd /usr/local/tomcat/webapps;rm -rf ROOT/; ln -s guacamole.war ROOT.war; /opt/guacamole/bin/start.sh;
|
- 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