mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-09-26 20:41:45 +00:00
chore: formatting
This commit is contained in:
@@ -102,7 +102,6 @@ Docker is the easiest way. There is the [official image here](https://hub.docker
|
|||||||
```yaml
|
```yaml
|
||||||
# docker-compose.yml
|
# docker-compose.yml
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cache:
|
cache:
|
||||||
image: valkey/valkey:7-alpine
|
image: valkey/valkey:7-alpine
|
||||||
|
|||||||
@@ -90,7 +90,6 @@ Docker es la manera más fácil. Aquí encontramos [la imagen oficial](https://h
|
|||||||
```yaml
|
```yaml
|
||||||
# docker-compose.yml
|
# docker-compose.yml
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cache:
|
cache:
|
||||||
image: valkey/valkey:7-alpine
|
image: valkey/valkey:7-alpine
|
||||||
|
|||||||
@@ -114,7 +114,6 @@ services:
|
|||||||
- 域名 `example.org`
|
- 域名 `example.org`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
+12
-14
@@ -30,21 +30,21 @@ services:
|
|||||||
image: traefik:2.6
|
image: traefik:2.6
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- '80:80'
|
- "80:80"
|
||||||
- '443:443'
|
- "443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./traefik.yaml:/etc/traefik/traefik.yaml:ro
|
- ./traefik.yaml:/etc/traefik/traefik.yaml:ro
|
||||||
- ./data:/data
|
- ./data:/data
|
||||||
labels:
|
labels:
|
||||||
- 'traefik.enable=true'
|
- "traefik.enable=true"
|
||||||
|
|
||||||
# HTTP to HTTPS redirection
|
# HTTP to HTTPS redirection
|
||||||
- 'traefik.http.routers.http_catchall.rule=HostRegexp(`{any:.+}`)'
|
- "traefik.http.routers.http_catchall.rule=HostRegexp(`{any:.+}`)"
|
||||||
- 'traefik.http.routers.http_catchall.entrypoints=insecure'
|
- "traefik.http.routers.http_catchall.entrypoints=insecure"
|
||||||
- 'traefik.http.routers.http_catchall.middlewares=https_redirect'
|
- "traefik.http.routers.http_catchall.middlewares=https_redirect"
|
||||||
- 'traefik.http.middlewares.https_redirect.redirectscheme.scheme=https'
|
- "traefik.http.middlewares.https_redirect.redirectscheme.scheme=https"
|
||||||
- 'traefik.http.middlewares.https_redirect.redirectscheme.permanent=true'
|
- "traefik.http.middlewares.https_redirect.redirectscheme.permanent=true"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
@@ -61,15 +61,15 @@ api:
|
|||||||
# Define HTTP and HTTPS entrypoint
|
# Define HTTP and HTTPS entrypoint
|
||||||
entryPoints:
|
entryPoints:
|
||||||
insecure:
|
insecure:
|
||||||
address: ':80'
|
address: ":80"
|
||||||
secure:
|
secure:
|
||||||
address: ':443'
|
address: ":443"
|
||||||
|
|
||||||
# Dynamic configuration will come from docker labels
|
# Dynamic configuration will come from docker labels
|
||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
endpoint: 'unix:///var/run/docker.sock'
|
endpoint: "unix:///var/run/docker.sock"
|
||||||
network: 'proxy'
|
network: "proxy"
|
||||||
exposedByDefault: false
|
exposedByDefault: false
|
||||||
|
|
||||||
# Enable acme with http file challenge
|
# Enable acme with http file challenge
|
||||||
@@ -99,7 +99,6 @@ Create another docker-compose.yaml file in another folder. We will assume that t
|
|||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
@@ -153,7 +152,6 @@ docker-compose up -d
|
|||||||
```yaml
|
```yaml
|
||||||
# docker-compose.yaml
|
# docker-compose.yaml
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ Assumptions:
|
|||||||
- Domain name `example.org`.
|
- Domain name `example.org`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
|||||||
Reference in New Issue
Block a user