You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This guide explains how to deploy the application stack in a production environment using Traefik as a reverse proxy with Let's Encrypt SSL certificates.
4
+
5
+
## Prerequisites
6
+
7
+
1. A server with Docker and Docker Compose installed
8
+
2. A domain name (e.g., `devopsterminal.com`) with DNS access
9
+
3. Ports 80 and 443 open in your firewall
10
+
11
+
## Setup Instructions
12
+
13
+
1.**Update DNS Records**
14
+
Create the following DNS A records pointing to your server's IP address:
15
+
-`devopsterminal.com`
16
+
-`projekt1.devopsterminal.com`
17
+
-`projekt2.devopsterminal.com`
18
+
-`traefik.devopsterminal.com`
19
+
20
+
2.**Update Configuration**
21
+
- Update the email address in `docker-compose.prod.yml` (search for `[email protected]`)
22
+
- Update the domain names if you're using a different domain than `devopsterminal.com`
23
+
- Change the default credentials for the Traefik dashboard (see below)
24
+
25
+
3.**Change Default Credentials**
26
+
The default credentials for the Traefik dashboard are:
27
+
- Username: `admin`
28
+
- Password: `changeme`
29
+
30
+
To generate a new password hash:
31
+
```bash
32
+
echo$(htpasswd -nb admin your-new-password)| sed -e s/\\$/\\$\$/g
33
+
```
34
+
Update the `traefik.http.middlewares.auth.basicauth.users` label in `docker-compose.prod.yml` with the new hash.
0 commit comments