2021-06-15 20:41:52 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
porter-http:
|
|
|
|
restart: on-failure
|
2021-07-05 13:15:59 +00:00
|
|
|
image: porter:latest
|
2021-07-02 15:54:42 +00:00
|
|
|
container_name: porter-http
|
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",
|
2022-02-12 13:56:46 +00:00
|
|
|
"--eth-provider", "${WEB3_PROVIDER_URI}",
|
2021-10-05 15:54:46 +00:00
|
|
|
"--network", "${NUCYPHER_NETWORK}",
|
|
|
|
"--allow-origins", "${PORTER_CORS_ALLOW_ORIGINS}"] # empty string if env var not defined which translates to CORS not enabled by default
|
2021-06-15 20:41:52 +00:00
|
|
|
|
|
|
|
porter-https:
|
|
|
|
restart: on-failure
|
2021-07-05 13:15:59 +00:00
|
|
|
image: porter:latest
|
2021-07-02 15:54:42 +00:00
|
|
|
container_name: porter-https
|
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",
|
2022-02-12 13:56:46 +00:00
|
|
|
"--eth-provider", "${WEB3_PROVIDER_URI}",
|
2021-06-15 20:41:52 +00:00
|
|
|
"--network", "${NUCYPHER_NETWORK}",
|
2021-06-21 18:39:10 +00:00
|
|
|
"--tls-key-filepath", "/etc/porter/tls/key.pem",
|
2021-10-05 15:54:46 +00:00
|
|
|
"--tls-certificate-filepath", "/etc/porter/tls/cert.pem",
|
|
|
|
"--allow-origins", "${PORTER_CORS_ALLOW_ORIGINS}"] # empty string if env var not defined which translates to CORS not enabled by default
|
2021-06-21 18:39:10 +00:00
|
|
|
|
|
|
|
porter-https-auth:
|
|
|
|
restart: on-failure
|
2021-07-05 13:15:59 +00:00
|
|
|
image: porter:latest
|
2021-07-02 15:54:42 +00:00
|
|
|
container_name: porter-https-auth
|
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",
|
2022-02-12 13:56:46 +00:00
|
|
|
"--eth-provider", "${WEB3_PROVIDER_URI}",
|
2021-06-21 18:39:10 +00:00
|
|
|
"--network", "${NUCYPHER_NETWORK}",
|
|
|
|
"--tls-key-filepath", "/etc/porter/tls/key.pem",
|
|
|
|
"--tls-certificate-filepath", "/etc/porter/tls/cert.pem",
|
2021-10-05 15:54:46 +00:00
|
|
|
"--basic-auth-filepath", "/etc/porter/auth/htpasswd",
|
|
|
|
"--allow-origins", "${PORTER_CORS_ALLOW_ORIGINS}"] # empty string if env var not defined which translates to CORS not enabled by default
|