Disable frontend and test portainer with traefik
This commit is contained in:
parent
8b2d20e257
commit
71cc848b72
|
@ -2,3 +2,4 @@
|
||||||
|
|
||||||
/config
|
/config
|
||||||
tunnel-options.sh
|
tunnel-options.sh
|
||||||
|
traefik/traefik.env
|
||||||
|
|
|
@ -6,3 +6,5 @@ MYSQL_ROOT_PASSWORD=h4ckMePleAse
|
||||||
# For Plex Pass download only
|
# For Plex Pass download only
|
||||||
PLEX_EMAIL=
|
PLEX_EMAIL=
|
||||||
PLEX_PASSWORD=
|
PLEX_PASSWORD=
|
||||||
|
|
||||||
|
PORTAINER_ADMIN_PASSWORD=h4ckMePleAse
|
|
@ -14,19 +14,19 @@ volumes:
|
||||||
mountpoint: /data/torrents
|
mountpoint: /data/torrents
|
||||||
|
|
||||||
services:
|
services:
|
||||||
frontend:
|
# frontend:
|
||||||
image: fromenje/seedbox:frontend
|
# image: fromenje/seedbox:frontend
|
||||||
build: Dockerfiles/frontend
|
# build: Dockerfiles/frontend
|
||||||
restart: always
|
# restart: always
|
||||||
networks:
|
# networks:
|
||||||
- main
|
# - main
|
||||||
ports:
|
# ports:
|
||||||
- "80:80"
|
# - "80:80"
|
||||||
- "443:443"
|
# - "443:443"
|
||||||
volumes:
|
# volumes:
|
||||||
- config:/config
|
# - config:/config
|
||||||
env_file:
|
# env_file:
|
||||||
- config
|
# - config
|
||||||
|
|
||||||
deluge:
|
deluge:
|
||||||
image: fromenje/seedbox:deluge
|
image: fromenje/seedbox:deluge
|
||||||
|
@ -115,3 +115,18 @@ services:
|
||||||
- PGID=33
|
- PGID=33
|
||||||
- PUID=33
|
- PUID=33
|
||||||
- TZ=Europe/Paris
|
- TZ=Europe/Paris
|
||||||
|
|
||||||
|
portainer:
|
||||||
|
image: portainer/portainer
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
networks:
|
||||||
|
- web
|
||||||
|
env_file:
|
||||||
|
- config
|
||||||
|
- traefik/traefik.env
|
||||||
|
command: --admin-password ${PORTAINER_ADMIN_PASSWORD} --host=unix:///var/run/docker.sock
|
||||||
|
labels:
|
||||||
|
- 'traefik.backend=portainer'
|
||||||
|
- 'traefik.port=9000'
|
||||||
|
- 'traefik.frontend.rule=Host:portainer.${TRAEFIK_DOMAIN}'
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
touch /opt/traefik/acme.json && chmod 600 /opt/traefik/acme.json
|
|
@ -0,0 +1,2 @@
|
||||||
|
ACME_MAIL=my-email@my-provider.com
|
||||||
|
TRAEFIK_DOMAIN=mydomain.com
|
|
@ -0,0 +1,61 @@
|
||||||
|
#https://docs.traefik.io/toml/
|
||||||
|
#https://docs.traefik.io/user-guide/examples/
|
||||||
|
################################################################
|
||||||
|
# Global configuration
|
||||||
|
################################################################
|
||||||
|
logLevel = "WARNING"
|
||||||
|
defaultEntryPoints = ["http", "https"]
|
||||||
|
|
||||||
|
[entryPoints]
|
||||||
|
[entryPoints.http]
|
||||||
|
address = ":80"
|
||||||
|
[entryPoints.http.redirect]
|
||||||
|
entryPoint = "https"
|
||||||
|
[entryPoints.https]
|
||||||
|
address = ":443"
|
||||||
|
[entryPoints.https.tls]
|
||||||
|
|
||||||
|
[retry]
|
||||||
|
|
||||||
|
# [acme]
|
||||||
|
# email = "email@company.com"
|
||||||
|
# storage = "acme.json"
|
||||||
|
# onDemande = true
|
||||||
|
# caServer = "https://acme-v02.api.letsencrypt.org/directory"
|
||||||
|
# entryPoint = "https"
|
||||||
|
# [acme.httpChallenge]
|
||||||
|
# entryPoint = "http"
|
||||||
|
# [[acme.domains]]
|
||||||
|
# main = "sub.domain.com"
|
||||||
|
# sans = ["sub.domain.com", "sub2.domain.com"]
|
||||||
|
|
||||||
|
[acme]
|
||||||
|
email = "overriden@in-traefik.yml"
|
||||||
|
storage = "acme.json"
|
||||||
|
entryPoint = "https"
|
||||||
|
onHostRule = true
|
||||||
|
acmeLogging = true
|
||||||
|
[acme.httpChallenge]
|
||||||
|
entryPoint = "http"
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Web configuration backend
|
||||||
|
################################################################
|
||||||
|
[web]
|
||||||
|
address = ":8080"
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Traefik Config
|
||||||
|
################################################################
|
||||||
|
|
||||||
|
################################################################
|
||||||
|
# Docker configuration backend
|
||||||
|
################################################################
|
||||||
|
[docker]
|
||||||
|
endpoint = "unix:///var/run/docker.sock"
|
||||||
|
domain = "mydomain.com"
|
||||||
|
watch = true
|
||||||
|
exposedByDefault = false
|
||||||
|
|
||||||
|
[file]
|
||||||
|
watch = true
|
|
@ -0,0 +1,24 @@
|
||||||
|
version: '2'
|
||||||
|
|
||||||
|
services:
|
||||||
|
traefik:
|
||||||
|
image: traefik
|
||||||
|
container_name: traefik
|
||||||
|
restart: always
|
||||||
|
env_file:
|
||||||
|
- ./traefik.env
|
||||||
|
networks:
|
||||||
|
- webgateway
|
||||||
|
command: --acme.email=${ACME_MAIL} --docker.domain=${TRAEFIK_DOMAIN}
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
- "443:443"
|
||||||
|
- "8080:8080"
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./traefik.toml:/traefik.toml
|
||||||
|
- /opt/traefik/acme.json:/acme.json
|
||||||
|
|
||||||
|
networks:
|
||||||
|
webgateway:
|
||||||
|
driver: bridge
|
Loading…
Reference in New Issue