This repository was archived by the owner on Oct 2, 2025. It is now read-only.
forked from chriskite/pure-ftpd-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudinit
More file actions
64 lines (57 loc) · 1.83 KB
/
Copy pathcloudinit
File metadata and controls
64 lines (57 loc) · 1.83 KB
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
#cloud-config
coreos:
update:
reboot-strategy: off
units:
- name: dd-agent.service
command: start
enable: true
content: |
[Unit]
Description=DataDog Monitoring Service
[Service]
TimeoutStartSec=600
ExecStartPre=-/usr/bin/docker kill %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull datadog/docker-dd-agent
ExecStart=/usr/bin/bash -c \
"/usr/bin/docker run --privileged --name %n -h `hostname` \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /proc/mounts:/host/proc/mounts:ro \
-v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro \
-p 8125:8125/udp \
-e API_KEY=96a8b00d3348783f56914670a2f0260e \
datadog/docker-dd-agent"
ExecStop=/usr/bin/docker stop -t 30 %n
Restart=always
[Install]
WantedBy=multi-user.target
- name: media-ftp.mount
command: start
content: |
[Mount]
What=/dev/xvdf1
Where=/media/ftp
Type=ext4
- name: offers-ftp.service
command: start
enable: true
content: |
[Unit]
Description=Offers FTP
After=docker.service
Requires=docker.service
After=media-ftp.mount
Requires=media-ftp.mount
[Service]
TimeoutStartSec=600
ExecStartPre=-/usr/bin/docker kill %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull registry.offers.net/devops/offers-ftp:r01
ExecStart=/usr/bin/bash -c \
"/usr/bin/docker run --rm --name %n --net=host -v /media/ftp:/home/ftpusers registry.offers.net/devops/offers-ftp:r01"
ExecStop=/usr/bin/docker stop -t 30 %n
ExecStop=/usr/bin/docker rm %n
Restart=always
[Install]
WantedBy=multi-user.target