Skip to content

Commit

Permalink
modify the project to adapt the docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy201602 committed Mar 30, 2021
1 parent 4898ca3 commit 1dc0d01
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
24 changes: 19 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,32 @@ volumes:
services:
guacd:
image: guacamole/guacd:0.9.14
network_mode: "host"
networks:
- new
environment:
GUACDHOST: guacd
REDISHOST: redis
WEBTERMINALHOST: webterminal
volumes:
- recording_data:/opt/webterminal/media/
ports:
- "4822:4822"
redis:
image: redis:6.0-alpine
network_mode: "host"
networks:
- new
ports:
- "6379:6379"
webterminal:
image: webterminal/webterminal:beta
network_mode: "host"
networks:
- new
environment:
GUACDHOST: guacd
REDISHOST: redis
volumes:
- recording_data:/opt/webterminal/media/
- db_data:/opt/webterminal/db/
ports:
- 80:80
- 2100:2100
- "80:80"
- "2100:2100"
Binary file modified plugins/backend.so
Binary file not shown.
Binary file modified plugins/server.so
Binary file not shown.
4 changes: 2 additions & 2 deletions webterminal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer", # use redis backend
"CONFIG": {
"hosts": [("localhost", 6379)], # set redis address
"hosts": [(os.environ.get('REDISHOST','localhost'), 6379)], # set redis address
"channel_capacity": {
"http.request": 1000,
"websocket.send*": 10000,
Expand Down Expand Up @@ -328,7 +328,7 @@
CHANNELS_WS_PROTOCOLS = ["guacamole"]

# guacd daemon host address and port
GUACD_HOST = '127.0.0.1'
GUACD_HOST = os.environ.get('GUACDHOST','127.0.0.1')
GUACD_PORT = '4822'

# session will expire when user close browser
Expand Down

0 comments on commit 1dc0d01

Please sign in to comment.