-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 1.25 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: '3.8'
services:
initialized_db:
image: guacamole/guacamole:latest
command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'initialize script already exists' || /opt/guacamole/bin/initdb.sh --mysql > /init/initdb.sql" ]
volumes:
- ./init:/init
mariadb:
container_name: mariadb
hostname: mariadb
image: library/mariadb:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: mysql_root_passwd
MYSQL_DATABASE: guacamole_db
MYSQL_USER: guacamole_user
MYSQL_PASSWORD: guacamole_passwd
volumes:
- ./init:/docker-entrypoint-initdb.d:ro
- ./data:/var/lib/mysql:rw
depends_on:
- initialized_db
guacd:
container_name: guacd
hostname: guacd
image: guacamole/guacd:latest
restart: always
environment:
GUACD_LOG_LEVEL: debug
guacamole:
container_name: guacamole
hostname: guacamole
image: guacamole/guacamole:latest
restart: always
links:
- guacd
- mariadb
depends_on:
- guacd
- mariadb
ports:
- "8080:8080"
environment:
GUACD_HOSTNAME: guacd
MYSQL_HOSTNAME: mariadb
MYSQL_DATABASE: guacamole_db
MYSQL_USER: guacamole_user
MYSQL_PASSWORD: guacamole_passwd