forked from imro2/docker-kmttg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alpine-vnc.yml
66 lines (66 loc) · 1.33 KB
/
alpine-vnc.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
version: "3.8"
services:
kmttg:
image: drnay/kmttg:latest
init: true
volumes:
- kmttg_app:/home/kmttg/app
- kmttg_files:/files
- kmttg_out:/home/kmttg/out
- /etc/localtime:/etc/localtime
environment:
- DISPLAY=vnc:0
# ports:
# - "8181:8181"
depends_on:
- vnc
networks:
- x11
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
vnc:
image: drnay/alpine-vnc:latest
init: true
volumes:
- vnc_sshd_keys:/home/vnc/etc/ssh
- /etc/localtime:/etc/localtime
environment:
- DISPLAY=:0
ports:
- "2222:2222"
networks:
- x11
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 1
# window: 120s
secrets:
- source: authorized_keys
target: /home/vnc/.ssh/authorized_keys
uid: '10000'
gid: '10001'
mode: 0600
- source: vnc_passwd
target: /home/vnc/.vnc/passwd
uid: '10000'
gid: '10001'
mode: 0600
networks:
x11:
volumes:
kmttg_app:
kmttg_files:
kmttg_out:
vnc_sshd_keys:
secrets:
authorized_keys:
file: ${HOME}/.ssh/id_rsa.pub
vnc_passwd:
file: ${HOME}/.vnc/passwd