-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.69 KB
/
docker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.69 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
version: "3.8"
services:
web:
build:
context: .
dockerfile: Dockerfile
container_name: webserver
expose:
- "80" # make port 80 available to the Docker network
restart: always
networks:
- webnet
# linuxserver swag (secure web application gateway)
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN # needed to bind low ports and manage cert challenges
environment:
- PUID=501
- PGID=20
- TZ=America/Los_Angeles
- URL=renburnett.io
- SUBDOMAINS=www # comma‑separated subdomains; omit or blank for apex only
- VALIDATION=http # use the HTTP challenge on port 80
# - STAGING=true # optional: test without hitting LE rate limits
volumes:
- ./swag/config:/config # where SWAG will store certs & nginx configs
ports:
- "80:80" # HTTP in → SWAG
- "443:443" # HTTPS in → SWAG
restart: always
networks:
- webnet
# cronjob to check if port forwarding is still up
monitor:
build:
context: .
dockerfile: Dockerfile.monitor
container_name: port_monitor
volumes:
- ./monitor-port-forwarding.sh:/usr/local/bin/monitor-port-forwarding.sh:ro
- ./monitor-port-forwarding.log:/var/log/monitor-port-forwarding.log
# TODO: configure SMTP tings
# environment:
# SMTP_HOST: smtp.mailprovider.com
# SMTP_PORT: 587
# SMTP_USER: you@example.com
# SMTP_PASS: your_smtp_password
# SMTP_FROM: monitor@renburnett.io
# ALERT_EMAIL: your.email@domain.com
restart: always
networks:
webnet:
driver: bridge