2 changed files with 74 additions and 0 deletions
@ -0,0 +1,52 @@ |
|||||||
|
version: '3' |
||||||
|
|
||||||
|
# services |
||||||
|
services: |
||||||
|
# guacd |
||||||
|
guacd: |
||||||
|
container_name: mistborn_production_guacd |
||||||
|
image: guacamole/guacd |
||||||
|
networks: |
||||||
|
guacnetwork: |
||||||
|
restart: unless-stopped |
||||||
|
volumes: |
||||||
|
- ../../mistborn_volumes/extra/guacamole/drive:/drive:rw |
||||||
|
- ../../mistborn_volumes/extra/guacamole/record:/record:rw |
||||||
|
|
||||||
|
# guacamole |
||||||
|
guacamole: |
||||||
|
container_name: mistborn_production_guacamole |
||||||
|
labels: |
||||||
|
- "traefik.enable=true" |
||||||
|
- "traefik.http.routers.onlyoffice-http.rule=Host(`guac.mistborn`)" |
||||||
|
- "traefik.http.routers.onlyoffice-http.entrypoints=web" |
||||||
|
- "traefik.http.routers.onlyoffice-http.middlewares=mistborn_auth@file" |
||||||
|
- "traefik.http.routers.onlyoffice-https.rule=Host(`guac.mistborn`)" |
||||||
|
- "traefik.http.routers.onlyoffice-https.entrypoints=websecure" |
||||||
|
- "traefik.http.routers.onlyoffice-https.middlewares=mistborn_auth@file" |
||||||
|
- "traefik.http.routers.onlyoffice-https.tls.certresolver=basic" |
||||||
|
- "traefik.http.services.onlyoffice-service.loadbalancer.server.port=8080" |
||||||
|
depends_on: |
||||||
|
- guacd |
||||||
|
- postgres |
||||||
|
environment: |
||||||
|
GUACD_HOSTNAME: guacd |
||||||
|
env_file: |
||||||
|
- ../.envs/.production/.postgres |
||||||
|
image: guacamole/guacamole |
||||||
|
links: |
||||||
|
- guacd |
||||||
|
networks: |
||||||
|
guacnetwork: |
||||||
|
#ports: |
||||||
|
## enable next line if not using nginx |
||||||
|
## - 8080:8080/tcp # Guacamole is on :8080/guacamole, not /. |
||||||
|
## enable next line when using nginx |
||||||
|
#- 8080/tcp |
||||||
|
restart: unless-stopped |
||||||
|
|
||||||
|
# networks |
||||||
|
# create a network 'guacnetwork' in mode 'bridged' |
||||||
|
networks: |
||||||
|
guacnetwork: |
||||||
|
driver: bridge |
||||||
@ -0,0 +1,22 @@ |
|||||||
|
[Unit] |
||||||
|
Description=Mistborn Guacamole |
||||||
|
Requires=Mistborn-base.service |
||||||
|
After=Mistborn-base.service |
||||||
|
PartOf=Mistborn-base.service |
||||||
|
|
||||||
|
[Service] |
||||||
|
Restart=always |
||||||
|
User=root |
||||||
|
Group=docker |
||||||
|
PermissionsStartOnly=true |
||||||
|
# Shutdown container (if running) when unit is stopped |
||||||
|
ExecStartPre=/usr/local/bin/docker-compose -f /opt/mistborn/extra/guacamole.yml down |
||||||
|
|
||||||
|
# Start container when unit is started |
||||||
|
ExecStart=/usr/local/bin/docker-compose -f /opt/mistborn/extra/guacamole.yml up --build |
||||||
|
# Stop container when unit is stopped |
||||||
|
ExecStop=/usr/local/bin/docker-compose -f /opt/mistborn/extra/guacamole.yml down |
||||||
|
# Post stop |
||||||
|
|
||||||
|
[Install] |
||||||
|
WantedBy=multi-user.target |
||||||
Loading…
Reference in new issue