-
Notifications
You must be signed in to change notification settings - Fork 2
/
core03.user-data
86 lines (80 loc) · 2.31 KB
/
core03.user-data
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#cloud-config
---
coreos:
etcd2:
discovery: https://discovery.etcd.io/bdde6b9baa1069c076e88ca74ae03147
advertise-client-urls: http://$private_ipv4:2379,http://$private_ipv4:4001
initial-advertise-peer-urls: http://$private_ipv4:2380
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001
listen-peer-urls: http://$private_ipv4:2380
fleet:
public-ip: $public_ipv4
units:
- name: etcd2.service
command: start
- name: fleet.service
command: start
- name: docker-tcp.socket
command: start
enable: true
content: |
[Unit]
Description=Docker Socket for the API
[Socket]
ListenStream=2375
Service=docker.service
BindIPv6Only=both
[Install]
WantedBy=sockets.target
- name: xltestview.service
command: start
enable: true
content: |
[Unit]
Description=XL Test View
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill xltestview
ExecStartPre=-/usr/bin/docker rm xltestview
ExecStart=/usr/bin/docker run \
-p 6516:6516 \
--name="xltestview" \
mjvdende/docker-xltestview
ExecStop=/usr/bin/docker stop xltestview
- name: sonarqube.service
command: start
enable: true
content: |
[Unit]
Description=SonarQube
After=xltestview.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill sonarqube
ExecStartPre=-/usr/bin/docker rm sonarqube
ExecStart=/usr/bin/docker run \
-p 9000:9000 \
-p 9092:9092 \
--name="sonarqube" \
sonarqube
ExecStop=/usr/bin/docker stop sonarqube
- name: tomcat.service
command: start
enable: true
content: |
[Unit]
Description=Tomcat
After=sonarqube.service
Requires=docker.service
[Service]
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill tomcat
ExecStartPre=-/usr/bin/docker rm tomcat
ExecStart=/usr/bin/docker run \
-p 8180:8080 \
--name="tomcat" \
tomcat
ExecStop=/usr/bin/docker stop tomcat