initial commit
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
## Proxy
|
||||
|
||||
Créer un réseau pour le proxy
|
||||
|
||||
```shell
|
||||
docker network create proxy_net
|
||||
```
|
||||
|
||||
```shell
|
||||
caddy:
|
||||
image: lucaslorentz/caddy-docker-proxy:2.10
|
||||
restart: "no"
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443/tcp"
|
||||
- "443:443/udp"
|
||||
networks:
|
||||
- caddy_net
|
||||
environment:
|
||||
CADDY_INGRESS_NETWORKS: proxy_net
|
||||
volumes:
|
||||
- caddy_config:/config
|
||||
- caddy_data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./data:/srv/www:ro
|
||||
labels:
|
||||
caddy: localhost
|
||||
caddy.root: "* /srv/www"
|
||||
caddy.file_server: "" # Active le serveur de fichiers statiques
|
||||
caddy.tls: internal # HTTPS auto-signé géré par Caddy
|
||||
```
|
||||
Reference in New Issue
Block a user