Possible working configuration?
This commit is contained in:
parent
ff412e7aef
commit
99fd29d57e
13
README.md
13
README.md
|
@ -1,15 +1,16 @@
|
|||
# compy
|
||||
|
||||
> One line description of the recipe
|
||||
> Compy is an HTTP/HTTPS forward proxy with content compression/transcoding capabilities.
|
||||
> One use case is to reduce bandwidth usage when browsing on limited mobile broadband connection.
|
||||
|
||||
<!-- metadata -->
|
||||
|
||||
* **Category**: Apps
|
||||
* **Status**: 0
|
||||
* **Image**: [`compy`](https://hub.docker.com/r/compy), 4, upstream
|
||||
* **Status**: 1, alpha
|
||||
* **Image**: [`compy`](https://hub.docker.com/r/thecoopcloud/compy), 0, own
|
||||
* **Healthcheck**: No
|
||||
* **Backups**: No
|
||||
* **Email**: No
|
||||
* **Email**: N/A
|
||||
* **Tests**: No
|
||||
* **SSO**: No
|
||||
|
||||
|
@ -22,3 +23,7 @@
|
|||
* `abra app deploy <app-name>`
|
||||
|
||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
|
||||
## SSL (and Man-in-the-Middle)
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
command: ["-cert", "/certs/cert.crt", "-key", "/certs/cert.key", "-ca", "/certs/ca.crt", "-cakey", "/certs/ca.key"]
|
||||
volumes:
|
||||
- "compy_certs:/certs"
|
||||
|
||||
volumes:
|
||||
compy_certs:
|
27
compose.yml
27
compose.yml
|
@ -3,7 +3,7 @@ version: "3.8"
|
|||
|
||||
services:
|
||||
app:
|
||||
image: nginx:1.20.0
|
||||
image: thecoopcloud/compy
|
||||
networks:
|
||||
- proxy
|
||||
deploy:
|
||||
|
@ -11,21 +11,18 @@ services:
|
|||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
## Redirect from EXTRA_DOMAINS to DOMAIN
|
||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "traefik.tcp.routers.${STACK_NAME}.entrypoints=compy"
|
||||
- "traefik.tcp.routers.${STACK_NAME}.service=${STACK_NAME}-tcp-service"
|
||||
- "traefik.tcp.routers.${STACK_NAME}.rule=HostSNI(`*`)"
|
||||
- "traefik.tcp.routers.${STACK_NAME}.tls.passthrough=true"
|
||||
- "traefik.tcp.services.${STACK_NAME}-tcp-service.loadbalancer.server.port=9999"
|
||||
- "coop-cloud.${STACK_NAME}.version="
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
# healthcheck:
|
||||
# test: ["CMD", "curl", "-f", "http://localhost"]
|
||||
# interval: 30s
|
||||
# timeout: 10s
|
||||
# retries: 10
|
||||
# start_period: 1m
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
|
Loading…
Reference in New Issue