-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
192 lines (184 loc) · 6.13 KB
/
docker-compose.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
version: "2"
services:
ip:
container_name: ip
image: joshdvir/ipd:latest
hostname: ip
network_mode: "your-network"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:myip.your-dns.zone'
- 'traefik.backend=ip'
- 'traefik.frontend.entryPoints=http,https'
- "/etc/localtime:/etc/localtime:ro"
db:
image: mariadb
container_name: nextcloud_db
network_mode: 'yournetwork'
restart: always
volumes:
- /your/path/nextcloud/db:/var/lib/mysql
- "/etc/localtime:/etc/localtime:ro" #TO HAVE CORRECT TIME INSIDE CONTAINER
environment:
- MYSQL_HOST=yourDBHostname
- MYSQL_PASSWORD=yourPassword
- MYSQL_ROOT_PASSWORD=yourRootPassword
- MYSQL_DATABASE=yourDBname
- MYSQL_USER=yourDBUser
app:
image: nextcloud:apache
container_name: nextcloud
network_mode: 'yournetwork'
restart: always
ports:
- 80
volumes:
- /your/path/nextcloud:/var/www/html
- "/etc/localtime:/etc/localtime:ro" #TO HAVE CORRECT TIME INSIDE CONTAINER
environment:
- MYSQL_HOST=yourDBHostname
- MYSQL_PASSWORD=yourPassword
- MYSQL_DATABASE=yourDBname
- MYSQL_USER=yourDBUser
depends_on:
- db
labels:
- 'traefik.enable=true'
- 'traefik.port=80'
- 'traefik.frontend.entryPoints=http,https'
- 'traefik.frontend.rule=Host:nextcloud.yourdns.zone'
- 'traefik.backend=nextcloud'
plex:
container_name: plex
image: plexinc/pms-docker
hostname: plex
network_mode: "your-network"
restart: unless-stopped
ports:
- 32400:32400/tcp
- 3005:3005/tcp
- 8324:8324/tcp
- 32469:32469/tcp
- 1900:1900/udp
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /your/path/plex/config:/config
- /your/path/plex/temp:/transcode
- /your/path/plex/data:/data #PATH TO YOUR HOLLIDAYS FILMS :D
labels:
- "traefik.port=32400"
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:plex.your-dns.zone'
- 'traefik.backend=plex'
- 'traefik.frontend.entryPoints=http,https'
- "/etc/localtime:/etc/localtime:ro"
portainer:
container_name: portainer
image: portainer/portainer
hostname: portainer
restart: unless-stopped
network_mode: "your-network"
labels:
- 'traefik.enable=true'
- 'traefik.port=9000'
- 'traefik.frontend.entryPoints=http,https'
- 'traefik.frontend.rule=Host:portainer.your-dns.zone'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /your/path/portainer/data:/data
- "/etc/localtime:/etc/localtime:ro"
rutorrent:
container_name: torrents
image: xataz/rtorrent-rutorrent:filebot
hostname: rutorrent
ports:
- "45566:45566"
- "9527:9527/udp"
- "45000:45000"
network_mode: "your-network"
environment:
- UID=1000
- GID=1000
labels:
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:seedbox.your-dns.zone'
- 'traefik.backend=rutorrent'
- 'traefik.frontend.entryPoints=http,https'
- 'traefik.frontend.auth.basic=user:password'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /your/path/torrents/config:/config
- /your/path/torrents/data:/data
- /your/path/torrents:/data/torrents
- "/etc/localtime:/etc/localtime:ro"
tautulli:
container_name: tautulli
image: linuxserver/tautulli
hostname: tautulli
network_mode: "your-network"
restart: unless-stopped
ports:
- 8181
labels:
- 'traefik.port=8181'
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:tautulli.your-dns.zone'
- 'traefik.frontend.entryPoints=http,https'
volumes:
- /your/path/tautulli/config:/config
- /your/path/tautulli/logs:/logs
- "/etc/localtime:/etc/localtime:ro"
traefik:
container_name: traefik
image: traefik:latest
ports:
- "80:80"
- "443:443"
- "8081:8081"
restart: unless-stopped
network_mode: "your-network"
environment: #AT THIS POINT IT'S ONLY FOR USE TRAEFIK WITH LET'S ENCRYPT AND OVH, IF YOU HAVE ANOTHER PROVIDER PLEASE VISIT THIS PAGE: https://docs.traefik.io/user-guide/examples/#dns-challenge
- OVH_ENDPOINT=ovh-eu
- OVH_APPLICATION_KEY=
- OVH_APPLICATION_SECRET=
- OVH_CONSUMER_KEY=
labels:
- 'traefik.enable=true'
- 'traefik.port=8081'
- 'traefik.frontend.entryPoints=http,https'
- 'traefik.frontend.rule=Host:traefik.your-dns.zone'
- 'traefik.backend=traefik'
volumes:
- /var/run/path.sock:/var/run/path.sock
- /your/path/traefik/traefik.toml:/etc/traefik/traefik.toml #TRAEFIK CONFIGURATION FILE
- /your/path/traefik/logs:/etc/traefik/logs #LOGS TRAEFIK (DEFINED IN traefik.toml)
- /your/path/traefik/acme:/etc/traefik/acme #ACME JSON GENERATED BY LET'S ENCRYPT
- /your/path/traefik/rules:/etc/traefik/rules #REVERSE PROXY RULES TO ACCESS EXTERNAL SITE
- "/etc/localtime:/etc/localtime:ro" #TO HAVE CORRECT TIME INSIDE CONTAINER
xymon:
container_name: xymon
image: deweysasser/docker-xymon #I have some trouble with this image, the best way is to clone the repo of deweysasser/docker-xymon and to build the image with the Dockerfile
hostname: xymon
ports:
- "1984:1984"
network_mode: "your-network"
environment:
- GID=1000
- UID=1000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /your/path/xymon/config:/etc/xymon
- /your/path/xymon/data:/var/lib/xymon
- "/etc/localtime:/usr/share/zoneinfo/posixrules:ro"
labels:
- 'traefik.enable=true'
- 'traefik.frontend.rule=Host:xymon.your-dns.zone'
- 'traefik.backend=xymon'
- 'traefik.frontend.entryPoints=http,https'
- 'traefik.frontend.auth.basic=user:password' #if you want to hash your password use .htpassword generator (google is your friend) and double every '$' # exemple user:jhsqdh$h$khjh = user:jhsqdh$$h$$khjh