-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (73 loc) · 2.67 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.7'
services:
guacamole-initbot:
image: guacamole/guacamole
container_name: guacamole-initbot
user: root
command: >
/bin/bash -c "test -e /templates/database/initdb.sql && echo 'init file already exists' || /opt/guacamole/bin/initdb.sh --postgresql > /templates/database/initdb.sql; openssl req -nodes -newkey rsa:2048 -new -x509 -keyout /templates/ssl/self-ssl.key -out /templates/ssl/self.cert -subj '/C=DE/ST=BY/L=Hintertupfing/O=Dorfwirt/OU=Theke/CN=www.createyourown.domain/[email protected]'"
volumes:
- ./templates/database:/templates/database:rw
- ./templates/ssl:/templates/ssl:rw
guacamole:
image: guacamole/guacamole
container_name: guacamole
networks:
- guacamole_network
ports:
- 8080/tcp
depends_on:
- guacamole-initbot
- guacamole-daemon
- guacamole-db
restart: unless-stopped
env_file:
- .env
guacamole-daemon:
image: guacamole/guacd
container_name: guacamole-daemon
volumes:
- ./Data/Daemon/drive:/drive:rw
- ./Data/Daemon/record:/record:rw
networks:
- guacamole_network
restart: unless-stopped
guacamole-db:
image: postgres:15.2-alpine
container_name: guacamole-db
volumes:
- ./templates/database:/docker-entrypoint-initdb.d:ro
- ./Data/Database/data:/var/lib/postgresql/data:rw
env_file:
- .env
networks:
- guacamole_network
depends_on:
- guacamole-initbot
restart: unless-stopped
guacamole-wps:
image: nginx:1.21.6
container_name: guacamole-wps
volumes:
- ./templates/nginx:/etc/nginx/templates:ro
- ./templates/ssl:/etc/nginx/ssl:ro
- ./Data/SSL/certbot/letsencrypt:/etc/letsencrypt:ro
- ./Data/WEBROOT:/usr/share/nginx/html:rw
networks:
- guacamole_network
ports:
- 80:80
- 443:443
restart: unless-stopped
guacamole-certbot:
container_name: guacamole-certbot
image: certbot/certbot:v1.27.0
volumes:
- ./Data/SSL/certbot/letsencrypt:/etc/letsencrypt:rw
- ./Data/SSL/certbot/log:/var/log/letsencrypt:rw
- ./Data/WEBROOT:/var/www/certbot:rw
command: certonly --webroot --webroot-path=/var/www/certbot --email <Your Email> --agree-tos --no-eff-email --force-renewal -d <Your Domain>
restart: 'no'
networks:
guacamole_network:
driver: bridge