两个容器

main
root 2 years ago
parent ac6badbd43
commit f2ebd74ef3

@ -1,8 +1,8 @@
services: services:
ubuntu-xfce-xrdp: xfce-xrdp-3386:
build: . build: .
image: ubuntu-xfce-xrdp:latest image: chunlinwang/ubuntu-xfce-xrdp:latest
container_name: ubuntu-xfce-xrdp-3386 container_name: xfce-xrdp-3386
ports: ports:
- "3386:3389" - "3386:3389"
- "11022:22" - "11022:22"
@ -18,3 +18,24 @@ services:
capabilities: [gpu] capabilities: [gpu]
shm_size: 1g shm_size: 1g
restart: unless-stopped restart: unless-stopped
xfce-xrdp-3387:
build: .
image: chunlinwang/ubuntu-xfce-xrdp:latest
container_name: xfce-xrdp-3387
ports:
- "3387:3389"
- "11023:22"
environment:
- USERNAME=wcl
- PASSWORD=123
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
shm_size: 1g
restart: unless-stopped

Loading…
Cancel
Save