initial commit
This commit is contained in:
10
.editorconfig
Normal file
10
.editorconfig
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
# Unix-style newlines with a newline ending every file
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
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