deploy: add guacamole/docker-compose.yml
This commit is contained in:
1 parent
b1297225c7
commit
ffe23fb294
1 file changed
+41
@@ -0,0 +1,41 @@
|
||||
services:
|
||||
guacd:
|
||||
image: guacamole/guacd:latest
|
||||
container_name: guacd
|
||||
restart: unless-stopped
|
||||
networks: [guac-net]
|
||||
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: guac-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: guacamole_db
|
||||
POSTGRES_USER: guacamole_user
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
volumes:
|
||||
- guac-pgdata:/var/lib/postgresql/data
|
||||
- ./initdb.sql:/docker-entrypoint-initdb.d/initdb.sql:ro
|
||||
networks: [guac-net]
|
||||
|
||||
guacamole:
|
||||
image: guacamole/guacamole:latest
|
||||
container_name: guacamole
|
||||
restart: unless-stopped
|
||||
depends_on: [guacd, postgres]
|
||||
environment:
|
||||
GUACD_HOSTNAME: guacd
|
||||
POSTGRESQL_HOSTNAME: postgres
|
||||
POSTGRESQL_DATABASE: guacamole_db
|
||||
POSTGRESQL_USERNAME: guacamole_user
|
||||
POSTGRESQL_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- '8085:8080'
|
||||
networks: [guac-net]
|
||||
|
||||
volumes:
|
||||
guac-pgdata:
|
||||
|
||||
networks:
|
||||
guac-net:
|
||||
driver: bridge
|
||||
Reference in new issue
Block a user