Skip to content

Commit b57989b

Browse files
committed
dcp-x11 # - default #dcp不带参:不会激活之
dcp-x11 port-fix dcp-x11 profiles: [split] dcp-x11 hostname: x11-virter dcp-x11 network_mode: ${NETWORK_MODE:-bridge}
1 parent 519bbad commit b57989b

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

dcp-x11ubt-virtmgr.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ services:
1212
working_dir: /srv/local/libvirt
1313
# https://docs.docker.com/reference/compose-file/profiles/ tpl
1414
# https://docs.docker.com/reference/cli/docker/compose/ env.COMPOSE_PROFILES
15-
profiles:
16-
- split
15+
profiles: [split]
1716
ports:
1817
- 62122:60022
1918
# https://gitlab.com/libvirt/libvirt/-/issues/163
@@ -40,11 +39,10 @@ services:
4039
healthcheck:
4140
test: ["CMD", "bash", "-c", "sv status |grep -v '+ +++ ' && exit 1 || exit 0 "]
4241
shm_size: 1g
43-
hostname: x11-ubuntu
42+
hostname: x11-virtmgr
4443
privileged: true
4544
network_mode: bridge #host bridge;
46-
profiles:
47-
- split
45+
profiles: [split]
4846
ports:
4947
# - 8385:80
5048
- 62022:62022
@@ -64,18 +62,22 @@ services:
6462
image: registry.cn-shenzhen.aliyuncs.com/infrastlabs/docker-libvirtd:v2501-x11ubt2404
6563
entrypoint: /bin/bash /srv/local/libvirt/build/entry-prex11.sh
6664
restart: unless-stopped
65+
healthcheck:
66+
test: ["CMD", "bash", "-c", "sv status |grep -v '+ +++ ' && exit 1 || exit 0 "]
67+
shm_size: 1g
68+
hostname: x11-virter
6769
privileged: true
68-
network_mode: bridge #host bridge; non.host: avoid multi-inst-network-conflict
70+
network_mode: ${NETWORK_MODE:-bridge} #host bridge; non.host: avoid multi-inst-network-conflict
6971
working_dir: /srv/local/libvirt
7072
cgroup: host
71-
profiles:
72-
- default
73+
# profiles:
74+
# - default #dcp不带参:不会激活之
7375
ports:
7476
# - 8385:80
7577
# - 62122:60022
76-
- 63022:62022
77-
- 63081:62081
78-
- 63089:62089
78+
- 63022:63022
79+
- 63081:63081
80+
- 63089:63089
7981
environment:
8082
- VNC_OFFSET=63
8183
- START_SESSION=${DESK:-openbox-session} #startfluxbox openbox-session xfce4-session

0 commit comments

Comments
 (0)