mirror of
https://github.com/atareao/self-hosted.git
synced 2024-06-30 02:55:38 +02:00
add traefik docker compose
This commit is contained in:
parent
6e183c75ad
commit
c8f644601f
19
caddy/docker-compose.yml
Normal file
19
caddy/docker-compose.yml
Normal 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
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -5,7 +5,5 @@ services:
|
|||
image: atareao/nginx:v1.0
|
||||
container_name: nginx
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 8080:8080
|
||||
volumes:
|
||||
- ./html:/html
|
||||
|
|
Loading…
Reference in New Issue
Block a user