-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
67 lines (65 loc) · 1.84 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
##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:
latest:
image: infrastlabs/docker-headless:latest
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
sogou:
image: infrastlabs/docker-headless:sogou
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:
- VNC_OFFSET=12 #5900+12
- PORT_SSH=12022
- PORT_VNC=12081
- PORT_RDP=12089
volumes:
- /_ext:/_ext
- /opt:/opt
- /:/mnt
core:
image: infrastlabs/docker-headless:core
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:
- VNC_OFFSET=13
- PORT_SSH=13022
- PORT_VNC=13081
- PORT_RDP=13089
volumes:
- /_ext:/_ext
- /opt:/opt
- /:/mnt