2021-06-15 20:41:52 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
porter-http:
|
|
|
|
restart: on-failure
|
2021-07-02 00:10:41 +00:00
|
|
|
image: nucypher-porter
|
2021-06-15 20:41:52 +00:00
|
|
|
build:
|
|
|
|
context: ../../..
|
2021-06-21 18:39:10 +00:00
|
|
|
dockerfile: deploy/docker/porter/Dockerfile
|
2021-06-15 20:41:52 +00:00
|
|
|
ports:
|
|
|
|
# Default Porter port
|
|
|
|
- "80:9155"
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
- ~/.local/share/nucypher:/nucypher
|
|
|
|
command: ["nucypher", "porter", "run",
|
|
|
|
"--provider", "${WEB3_PROVIDER_URI}",
|
|
|
|
"--network", "${NUCYPHER_NETWORK}"]
|
|
|
|
|
|
|
|
porter-https:
|
|
|
|
restart: on-failure
|
2021-07-02 00:10:41 +00:00
|
|
|
image: nucypher-porter
|
2021-06-15 20:41:52 +00:00
|
|
|
ports:
|
|
|
|
# Default Porter port
|
|
|
|
- "443:9155"
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
- ~/.local/share/nucypher:/nucypher
|
2021-06-21 18:39:10 +00:00
|
|
|
- "${TLS_DIR}:/etc/porter/tls/"
|
2021-06-15 20:41:52 +00:00
|
|
|
command: [ "nucypher", "porter", "run",
|
|
|
|
"--provider", "${WEB3_PROVIDER_URI}",
|
|
|
|
"--network", "${NUCYPHER_NETWORK}",
|
2021-06-21 18:39:10 +00:00
|
|
|
"--tls-key-filepath", "/etc/porter/tls/key.pem",
|
|
|
|
"--tls-certificate-filepath", "/etc/porter/tls/cert.pem"]
|
|
|
|
|
|
|
|
porter-https-auth:
|
|
|
|
restart: on-failure
|
2021-07-02 00:10:41 +00:00
|
|
|
image: nucypher-porter
|
2021-06-21 18:39:10 +00:00
|
|
|
ports:
|
|
|
|
# Default Porter port
|
|
|
|
- "443:9155"
|
|
|
|
volumes:
|
|
|
|
- .:/code
|
|
|
|
- ~/.local/share/nucypher:/nucypher
|
|
|
|
- "${TLS_DIR}:/etc/porter/tls/"
|
|
|
|
- "${HTPASSWD_FILE}:/etc/porter/auth/htpasswd"
|
|
|
|
command: [ "nucypher", "porter", "run",
|
|
|
|
"--provider", "${WEB3_PROVIDER_URI}",
|
|
|
|
"--network", "${NUCYPHER_NETWORK}",
|
|
|
|
"--tls-key-filepath", "/etc/porter/tls/key.pem",
|
|
|
|
"--tls-certificate-filepath", "/etc/porter/tls/cert.pem",
|
|
|
|
"--basic-auth-filepath", "/etc/porter/auth/htpasswd"]
|