Añadir guacamole_compose.yaml
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
guacd:
|
||||
image: guacamole/guacd:latest
|
||||
container_name: guacd
|
||||
restart: unless-stopped
|
||||
|
||||
db:
|
||||
image: postgres:15
|
||||
container_name: guac_db
|
||||
environment:
|
||||
POSTGRES_USER: user
|
||||
POSTGRES_PASSWORD: ''
|
||||
POSTGRES_DB: guacamole_db
|
||||
volumes:
|
||||
# Mapea el script generado en el paso anterior para que se autoejecute
|
||||
- ./initdb.sql:/docker-entrypoint-initdb.d/initdb.sql
|
||||
- ./data:/var/lib/postgresql/data
|
||||
restart: unless-stopped
|
||||
|
||||
guacamole:
|
||||
image: guacamole/guacamole:latest
|
||||
container_name: guacamole
|
||||
environment:
|
||||
GUACD_HOSTNAME: guacd
|
||||
POSTGRESQL_HOSTNAME: db
|
||||
POSTGRESQL_DATABASE: guacamole_db
|
||||
POSTGRESQL_USER: user
|
||||
POSTGRESQL_PASSWORD: ''
|
||||
ports:
|
||||
# Puerto expuesto para enlazar con cloudflared
|
||||
- "8087:8080"
|
||||
depends_on:
|
||||
- guacd
|
||||
- db
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user