mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Add example for deploying notebook container using Docker Compose.
(c) Copyright IBM Corp. 2016
This commit is contained in:
22
examples/docker-compose/notebook/env.sh
Executable file
22
examples/docker-compose/notebook/env.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
# Set default values for environment variables required by notebook compose
|
||||
# configuration file.
|
||||
|
||||
# Container name
|
||||
: "${NAME:=my-notebook}"
|
||||
export NAME
|
||||
|
||||
# Exposed container port
|
||||
: ${PORT:=80}
|
||||
export PORT
|
||||
|
||||
# Container work volume name
|
||||
: "${WORK_VOLUME:=$NAME-work}"
|
||||
export WORK_VOLUME
|
||||
|
||||
# Container secrets volume name
|
||||
: "${SECRETS_VOLUME:=$NAME-secrets}"
|
||||
export SECRETS_VOLUME
|
Reference in New Issue
Block a user