Merge pull request #6 from SatoshiPortal/features/docker-swarm

Added swarm deploy sections
This commit is contained in:
kexkey
2021-03-18 16:40:04 -04:00
committed by GitHub
4 changed files with 74 additions and 0 deletions

View File

@@ -21,6 +21,23 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.port=8000" - "traefik.port=8000"
- "traefik.frontend.auth.basic.users=<username:bcrypt>" - "traefik.frontend.auth.basic.users=<username:bcrypt>"
deploy:
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.rule=PathPrefixStrip:/batcher"
- "traefik.frontend.passHostHeader=true"
- "traefik.enable=true"
- "traefik.port=8000"
- "traefik.frontend.auth.basic.users=<username:bcrypt>"
replicas: 1
placement:
constraints:
- node.labels.io.cyphernode == true
restart_policy:
condition: "any"
delay: 1s
update_config:
parallelism: 1
networks: networks:
cyphernodeappsnet: cyphernodeappsnet:
external: true external: true

View File

@@ -24,6 +24,27 @@ services:
networks: networks:
- cyphernodeappsnet - cyphernodeappsnet
restart: always restart: always
deploy:
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.entryPoints=https"
- "traefik.frontend.redirect.regex=^(.*)/sparkwallet$$"
- "traefik.frontend.redirect.replacement=$$1/sparkwallet/"
- "traefik.frontend.rule=PathPrefix:/sparkwallet;ReplacePathRegex: ^/sparkwallet/(.*) /$$1"
- "traefik.frontend.passHostHeader=true"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
- "traefik.frontend.headers.customRequestHeaders=X-Access:FoeDdQw5yl7pPfqdlGy3OEk/txGqyJjSbVtffhzs7kc="
- "traefik.enable=true"
- "traefik.port=9737"
replicas: 1
placement:
constraints:
- node.labels.io.cyphernode == true
restart_policy:
condition: "any"
delay: 1s
update_config:
parallelism: 1
networks: networks:
cyphernodeappsnet: cyphernodeappsnet:
external: true external: true

View File

@@ -20,6 +20,24 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.port=25441" - "traefik.port=25441"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd" - "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
deploy:
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.rule=PathPrefixStrip:/specter"
- "traefik.frontend.auth.forward.trustForwardHeader=true"
- "traefik.frontend.whiteList.useXForwardedFor=true"
- "traefik.enable=true"
- "traefik.port=25441"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
replicas: 1
placement:
constraints:
- node.labels.io.cyphernode == true
restart_policy:
condition: "any"
delay: 1s
update_config:
parallelism: 1
networks: networks:
cyphernodeappsnet: cyphernodeappsnet:
external: true external: true

View File

@@ -22,6 +22,24 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.port=8080" - "traefik.port=8080"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd" - "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
deploy:
labels:
- "traefik.docker.network=cyphernodeappsnet"
- "traefik.frontend.redirect.entryPoint=https"
- "traefik.frontend.rule=PathPrefixStrip:/welcome"
- "traefik.frontend.passHostHeader=true"
- "traefik.enable=true"
- "traefik.port=8080"
- "traefik.frontend.auth.basic.usersFile=/htpasswd/htpasswd"
replicas: 1
placement:
constraints:
- node.labels.io.cyphernode == true
restart_policy:
condition: "any"
delay: 1s
update_config:
parallelism: 1
networks: networks:
cyphernodeappsnet: cyphernodeappsnet:
external: true external: true