Blame

b79b87 J4nis05 2024-05-31 19:24:39 1
## Nginx Proxy Manager
2
3
This Will Create a Container for The Nginx Proxy Manager Reverse Proxy and Watchtower (automatically updates ye containers in the Background)
4
5
1. **Go To Portainer**
6
2. **Go To Stacks**
7
3. **Click on Add Stack**
8
4. **Choose one of the Compose files below**
9
5. **Deploy the Stack**
10
6. **Enjoy**
11
12
### 1.1 Docker Compose (using Path Bindings)
13
14
```yaml
15
# Core Services (Nginx Proxy Manager & Watchtower)
16
version: "3.8"
17
name: "services"
18
19
20
services:
21
nginx:
22
image: jc21/nginx-proxy-manager
23
container_name: nginx
24
restart: always
25
ports:
26
- 80:80 # HTTP Redirect Port
27
- 443:443 # HTTPS Redirect Port
28
- 81:81 # Management Port
29
volumes:
30
- /mnt/data/docker/services/nginx/data:/data
31
- /mnt/data/docker/services/nginx/letsencrypt:/etc/letsencrypt
32
environment:
33
- TZ=Europe/Zurich
34
- DISABLE_IPV6=true
35
36
watchtower:
37
image: containrrr/watchtower
38
container_name: watchtower
39
restart: always
40
volumes:
41
- /var/run/docker.sock:/var/run/docker.sock
42
43
44
networks:
45
default:
46
external: true
47
name: proxynet
48
```
49
50
51
### 1.2 (Alternative) Docker Compose (using Docker Volumes)
52
53
```yaml
54
version: "3.8"
55
name: "services"
56
57
services:
58
nginx:
59
image: jc21/nginx-proxy-manager:latest
60
container_name: nginx
61
restart: always
62
ports:
63
- 80:80 # HTTP Redirect Port
64
- 443:443 # HTTPS Redirect Port
65
- 81:81 # Management Port
66
volumes:
67
- nginx_data:/data
68
- nginx_letsencrypt:/etc/letsencrypt
69
environment:
70
- TZ=Europe/Zurich
71
- DISABLE_IPV6=true
72
73
watchtower:
74
image: containrrr/watchtower
75
container_name: watchtower
76
restart: always
77
volumes:
78
- /var/run/docker.sock:/var/run/docker.sock
79
80
networks:
81
default:
82
external: true
83
name: proxynet
84
85
volumes:
86
nginx_data:
87
nginx_letsencrypt:
88
```
89
90
91
### 2. Setup ye User Account
92
93
* go to `http://<server-ip>:81`
94
* Login with default admin Account:
95
* Username: `admin@example.com`
96
* Password: `changeme`
97
* After the first Login ye need to change username and password
98
* Have Fun