add traefik docker compose

This commit is contained in:
Lorenzo 2022-02-05 08:54:36 +01:00
parent 6e183c75ad
commit c8f644601f
3 changed files with 21 additions and 3 deletions

19
caddy/docker-compose.yml Normal file
View File

@ -0,0 +1,19 @@
version: "3.7"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
restart: unless-stopped
networks:
caddy:
external: true

View File

@ -4,6 +4,7 @@
git clone https://github.com/atareao/self-hosted.git
cd self-hosted/nginx
mkdir html
docker-compose up -d
cp sample.env .env
docker-compose -f docker-compose.yml -f docker-compose.traefik.yml up -d
docker-compose logs -f
```

View File

@ -5,7 +5,5 @@ services:
image: atareao/nginx:v1.0
container_name: nginx
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./html:/html