Skip to content

Commit

Permalink
Merge pull request #6 from SatoshiPortal/features/docker-swarm
Browse files Browse the repository at this point in the history
Added swarm deploy sections
  • Loading branch information
Kexkey authored Mar 18, 2021
2 parents be64ab2 + 637d767 commit b72ba90
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 0 deletions.
17 changes: 17 additions & 0 deletions batcher/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,23 @@ services:
- "traefik.enable=true"
- "traefik.port=8000"
- "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:
cyphernodeappsnet:
external: true
21 changes: 21 additions & 0 deletions sparkwallet/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,27 @@ services:
networks:
- cyphernodeappsnet
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:
cyphernodeappsnet:
external: true
18 changes: 18 additions & 0 deletions specter/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,24 @@ services:
- "traefik.enable=true"
- "traefik.port=25441"
- "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:
cyphernodeappsnet:
external: true
Expand Down
18 changes: 18 additions & 0 deletions welcome/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ services:
- "traefik.enable=true"
- "traefik.port=8080"
- "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:
cyphernodeappsnet:
external: true

0 comments on commit b72ba90

Please sign in to comment.