mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
32 lines
659 B
YAML
32 lines
659 B
YAML
---
|
|
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
version: "2"
|
|
|
|
services:
|
|
notebook:
|
|
build: .
|
|
image: my-notebook
|
|
container_name: ${NAME}
|
|
volumes:
|
|
- "work:/home/jovyan/work"
|
|
- "secrets:/etc/letsencrypt"
|
|
ports:
|
|
- "${PORT}:8888"
|
|
environment:
|
|
USE_HTTPS: "yes"
|
|
PASSWORD: ${PASSWORD}
|
|
command: >
|
|
start-notebook.sh
|
|
--NotebookApp.certfile=/etc/letsencrypt/fullchain.pem
|
|
--NotebookApp.keyfile=/etc/letsencrypt/privkey.pem
|
|
|
|
volumes:
|
|
work:
|
|
external:
|
|
name: ${WORK_VOLUME}
|
|
secrets:
|
|
external:
|
|
name: ${SECRETS_VOLUME}
|