Skip to content

Commit

Permalink
+dcp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sam#gemmi-win10 committed Nov 4, 2023
1 parent fe697cf commit 173b9cb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
##Prod: Change Password############################
# SSH_PASS=ChangeMe VNC_PASS=ChangeMe2 VNC_PASS_RO=ChangeMe3
# echo "headless:$SSH_PASS" |sudo chpasswd
# echo -e "$VNC_PASS\n$VNC_PASS\ny\n$VNC_PASS_RO\n$VNC_PASS_RO" |sudo vncpasswd /etc/xrdp/vnc_pass; sudo chmod 644 /etc/xrdp/vnc_pass
#
# sed -i "s/password=.*/password=$SV_ADMIN_PASS/g" /etc/supervisor/supervisord.conf #restartContainer
###################################################
version: '2.4'
services:
x11base:
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/x11-base:fluxbox
restart: unless-stopped
healthcheck:
test: ["CMD", "bash", "-c", "sv status |grep -v 'Running' && exit 1 || exit 0 "]
shm_size: 1g
privileged: true
network_mode: host
environment:
- SSH_PASS=headless
- VNC_PASS=headless
- VNC_PASS_RO=View123
- VNC_OFFSET=11
- PORT_SSH=11022
- PORT_VNC=11081
- PORT_RDP=11089
- TZ=Asia/Shanghai
- L=zh_CN
volumes:
- /_ext:/_ext
- /opt:/opt
- /:/mnt

0 comments on commit 173b9cb

Please sign in to comment.