mirror of
https://git.wownero.com/lza_menace/docker-wownero.git
synced 2024-08-15 01:03:31 +00:00
adding compose file with traefik for node
This commit is contained in:
parent
9ca794ff65
commit
61b3efc0bf
3 changed files with 45 additions and 0 deletions
1
wownero/.dockerignore
Normal file
1
wownero/.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
data
|
3
wownero/.gitignore
vendored
Normal file
3
wownero/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
data
|
||||||
|
.env
|
||||||
|
docker-compose.prod.yaml
|
41
wownero/docker-compose.yaml
Normal file
41
wownero/docker-compose.yaml
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
reverse-proxy:
|
||||||
|
image: traefik:v2.2
|
||||||
|
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
|
||||||
|
# --api.dashboard=true
|
||||||
|
# --api.insecure=true
|
||||||
|
|
||||||
|
--entrypoints.http.address=:80
|
||||||
|
--entrypoints.https.address=:443
|
||||||
|
--providers.docker=true
|
||||||
|
--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:
|
||||||
|
- 80:80
|
||||||
|
- 443:443
|
||||||
|
# - 8080:8080
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- ./data/letsencrypt:/letsencrypt
|
||||||
|
wownerod:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
volumes:
|
||||||
|
- ./data:/data
|
||||||
|
command:
|
||||||
|
wownerod --data-dir=/data --rpc-bind-ip=0.0.0.0 --confirm-external-bind --non-interactive
|
||||||
|
labels:
|
||||||
|
- "traefik.http.routers.http.rule=Host(`${URL}`)"
|
||||||
|
- "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"
|
||||||
|
ports:
|
||||||
|
- "34568:34568"
|
Loading…
Reference in a new issue