Initial commit

This commit is contained in:
Benjamyn Love 2019-05-29 22:42:20 +10:00
commit 1254e9a0dc
3 changed files with 67 additions and 0 deletions

16
README.md Normal file
View File

@ -0,0 +1,16 @@
# Guacamole Compose
This is just a docker compose file for apache guacamole
Instructions
Create the initial database schema from the guacamole image
```bash
$ ./bash setup.sh
```
```bash
$ docker-compose up -d
```
Thats it!

48
docker-compose.yml Normal file
View File

@ -0,0 +1,48 @@
version: '3.3'
networks:
guacnet:
driver: bridge
services:
guacdb:
image: mariadb
volumes:
- ./dbdata:/var/lib/mysql
- ./init:/docker-entrypoint-initdb.d
restart: always
networks:
guacnet:
environment:
MYSQL_ROOT_PASSWORD: guacamole3242
MYSQL_DATABASE: guac
MYSQL_USER: guac
MYSQL_PASSWORD: guac
guacd:
image: guacamole/guacd
networks:
guacnet:
restart: always
guacamole:
image: guacamole/guacamole
ports:
- "8080:8080"
volumes:
- ./.guac-data:/guachome
restart: always
depends_on:
- guacd
- guacdb
links:
- guacd
networks:
guacnet:
environment:
GUACD_HOSTNAME: guacd
GUACAMOLE_HOME: /guachome
MYSQL_DATABASE: guac
MYSQL_USER: guac
MYSQL_PASSWORD: guac
MYSQL_HOSTNAME: guacdb

3
setup.sh Normal file
View File

@ -0,0 +1,3 @@
mkdir init >/dev/null 2>&1
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --mysql > ./init/initdb.sql
chmod +x init/initdb.sql