mirror of
https://git.wownero.com/lza_menace/wownero-explorer.git
synced 2024-08-15 01:03:26 +00:00
updating compose file with full traefik config for dev
This commit is contained in:
parent
ae9db86794
commit
0b3e02e022
1 changed files with 24 additions and 10 deletions
|
@ -2,21 +2,35 @@ version: '3'
|
||||||
services:
|
services:
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
image: traefik:v2.2
|
image: traefik:v2.2
|
||||||
command: --api.insecure=true --providers.docker
|
command:
|
||||||
|
# Try to enable this if something isn't working. Chances are, Traefik will tell you why
|
||||||
|
# Be careful on production as it exposes the traffic you might not want to expose
|
||||||
|
#--log.level=DEBUG
|
||||||
|
|
||||||
|
--entrypoints.http.address=:80
|
||||||
|
--entrypoints.https.address=:443
|
||||||
|
--providers.docker=true
|
||||||
|
--api=false
|
||||||
|
--certificatesresolvers.letsencrypt.acme.httpchallenge=true
|
||||||
|
--certificatesresolvers.letsencrypt.acme.httpchallenge.entrypoint=http
|
||||||
|
--certificatesresolvers.letsencrypt.acme.email=${ACME_EMAIL}
|
||||||
|
--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json
|
||||||
ports:
|
ports:
|
||||||
# The HTTP port
|
- 80:80
|
||||||
- "8080:80"
|
- 443:443
|
||||||
# The Web UI (enabled by --api.insecure=true)
|
|
||||||
- "9000:8080"
|
|
||||||
volumes:
|
volumes:
|
||||||
# So that Traefik can listen to the Docker events
|
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- .data/letsencrypt:/letsencrypt
|
||||||
wownero-explorer:
|
wownero-explorer:
|
||||||
build:
|
image: lalanza808/wownero-explorer:latest
|
||||||
context: .
|
command: wownero-explorer
|
||||||
dockerfile: Dockerfile
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.http.routers.explorer.rule=Host(`localhost:8000`)"
|
- "traefik.http.routers.http.rule=Host(`localhost`)"
|
||||||
|
- "traefik.http.routers.http.entrypoints=http"
|
||||||
|
# - "traefik.http.routers.https.rule=Host(`localhost:8000`)"
|
||||||
|
# - "traefik.http.routers.https.entrypoints=https"
|
||||||
|
# - "traefik.http.routers.https.tls=true"
|
||||||
|
# - "traefik.http.routers.https.tls.certresolver=letsencrypt"
|
||||||
environment:
|
environment:
|
||||||
DAEMON_URI: ${DAEMON_URI}
|
DAEMON_URI: ${DAEMON_URI}
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue