Created
December 25, 2020 07:19
-
-
Save zaverden/bb59ec9edc6419084eda03cf8ac829e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
networks: | |
public-entry: | |
name: public-entry | |
services: | |
##################################################################################### | |
traefik: | |
image: traefik:2.3 | |
restart: always | |
logging: | |
options: | |
max-size: 1m | |
networks: | |
- public-entry | |
ports: | |
- "443:443" | |
- "80:80" | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
- /data/certificates:/certificates | |
command: | |
- --api=true | |
- --api.dashboard=true | |
- --certificatesResolvers.le.acme.email=${LETS_ENCRYPT_EMAIL?Provide LETS_ENCRYPT_EMAIL} | |
- --certificatesResolvers.le.acme.storage=/certificates/acme.json | |
- --certificatesResolvers.le.acme.tlsChallenge=true | |
- --entryPoints.web443.address=:443 | |
- --entryPoints.web443.http.tls=true | |
- --entryPoints.web443.http.tls.certResolver=le | |
- --entryPoints.web80.address=:80 | |
- --entryPoints.web80.http.redirections.entryPoint.permanent=true | |
- --entryPoints.web80.http.redirections.entryPoint.scheme=https | |
- --entryPoints.web80.http.redirections.entryPoint.to=web443 | |
- --accessLog=true | |
- --accessLog.format=json | |
- --log.level=INFO | |
- --log.format=json | |
- --providers.docker=true | |
- --providers.docker.exposedByDefault=false | |
##################################################################################### | |
browserless: | |
image: browserless/chrome:1.33-puppeteer-2.1.1 | |
restart: always | |
environment: | |
# Environment configuration documentation: https://docs.browserless.io/docs/docker.html | |
CONNECTION_TIMEOUT: 1800000 | |
DEBUG: browserless/chrome* | |
EXIT_ON_HEALTH_FAILURE: "true" | |
PROXY_HOST: ${PUBLIC_HOST?Provide PUBLIC_HOST} | |
PROXY_PORT: 443 | |
PROXY_SSL: "true" | |
TOKEN: ${BROWSERLESS_TOKEN?Provide BROWSERLESS_TOKEN} | |
networks: | |
- public-entry | |
labels: | |
traefik.enable: "true" | |
traefik.http.routers.socely-browserless.rule: Host(`${PUBLIC_HOST?Provide PUBLIC_HOST}`) | |
traefik.http.routers.socely-browserless.entryPoints: web443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment