-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml.tb_swag_watchtower
More file actions
61 lines (57 loc) · 1.83 KB
/
docker-compose.yml.tb_swag_watchtower
File metadata and controls
61 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
# Following the guide here: https://blog.linuxserver.io/2019/04/25/letsencrypt-nginx-starter-guide/
---
version: '2.2'
services:
swag:
depends_on:
- watchtower
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
# Set your own details here:
- TZ= # Europe/Bratislava
- EMAIL= # info@mydomain.com
- URL= # vps.mydomain.com
- SUBDOMAINS= # www,tb
- VALIDATION=http
# When testing, set the STAGING=true, otherwise you may hit the LetsEncrypt limit of 5 certificate requests per week.
#- STAGING=true
volumes:
- ${PWD}/nginx.thingsboard.subdomain.conf:/config/nginx/proxy-confs/thingsboard.subdomain.conf
ports:
- 443:443
- 80:80
restart: unless-stopped
thingsboard:
container_name: thingsboard
image: "thingsboard/tb-postgres"
restart: unless-stopped
ports:
# The web port is disabled for Thingsboard. No need to access Thingsboard's webapp directly from outside. Access is allowed only through the nginx reverse proxy.
#- "8080:9090"
- "1883:1883"
- "5683:5683/udp"
environment:
TB_QUEUE_TYPE: in-memory
volumes:
- ~/.mytb-data:/data
- ~/.mytb-logs:/var/log/thingsboard
## It's probably better to upgrade the thingsboard image manually, so auto-upgrade is disabled here.
## See official upgrade instructions here:
## https://thingsboard.io/docs/user-guide/install/docker/#upgrading
# depends_on:
# - watchtower
labels:
- "com.centurylinklabs.watchtower.enable=false"
watchtower:
container_name: watchtower
command: --cleanup --schedule '0 30 4 * * *'
image: containrrr/watchtower
network_mode: none
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock