mirror of
https://github.com/brockar/traefik.git
synced 2026-01-11 15:01:01 -03:00
fix: change network from crowd1 to crowd
This commit is contained in:
@@ -18,7 +18,7 @@ services:
|
||||
- CF_DNS_API_TOKEN=${CF_DNS_API_TOKEN}
|
||||
networks:
|
||||
- proxy
|
||||
- crowd1
|
||||
- crowd
|
||||
# - nextcloud-aio
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -28,7 +28,7 @@ volumes:
|
||||
networks:
|
||||
proxy:
|
||||
external: true # <-- (Optional) Change this to false if you want to create a new network
|
||||
crowd1:
|
||||
crowd:
|
||||
external: true
|
||||
# if use nextcloud-aio, uncomment the next line
|
||||
# nextcloud-aio:
|
||||
|
||||
@@ -13,11 +13,11 @@ services:
|
||||
- crowdsec-config:/etc/crowdsec/
|
||||
- traefik_traefik_logs1:/var/log/traefik/:ro
|
||||
networks:
|
||||
- crowd1 # internal crowdsec + traefik network
|
||||
- crowd # internal crowdsec + traefik network
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
crowd1:
|
||||
crowd:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
|
||||
11
readme.md
11
readme.md
@@ -1,6 +1,7 @@
|
||||
# Traefik + CrowdSec + GeoBlock Setup
|
||||
|
||||
## Prerequisites
|
||||
|
||||
1. Domain with Cloudflare DNS
|
||||
2. Docker and Docker Compose installed
|
||||
3. Basic understanding of Docker networking
|
||||
@@ -8,7 +9,9 @@
|
||||
## Setup Instructions
|
||||
|
||||
### 1. Environment Configuration
|
||||
|
||||
Copy the environment template and configure:
|
||||
|
||||
```bash
|
||||
cp .env.example .env
|
||||
```
|
||||
@@ -17,7 +20,8 @@ Edit `.env` and add your Cloudflare API token
|
||||
|
||||
### 2. Manual Configuration Required
|
||||
|
||||
#### Edit `config/traefik.yml`:
|
||||
#### Edit `config/traefik.yml`
|
||||
|
||||
```yaml
|
||||
certificatesResolvers:
|
||||
cloudflare:
|
||||
@@ -25,7 +29,8 @@ certificatesResolvers:
|
||||
email: email@domain.com # <-- Change this to your email
|
||||
```
|
||||
|
||||
#### Edit `config/dynamic.yml`:
|
||||
#### Edit `config/dynamic.yml`
|
||||
|
||||
```yaml
|
||||
# Update geoblock configuration
|
||||
ar-only:
|
||||
@@ -49,7 +54,7 @@ crowdsec:
|
||||
|
||||
```bash
|
||||
docker network create proxy
|
||||
docker network create crowd1
|
||||
docker network create crowd
|
||||
chmod 600 ./certs
|
||||
|
||||
cd crowdsec
|
||||
|
||||
Reference in New Issue
Block a user