livebook/docs/deployment/docker.md

28 lines
1.1 KiB
Markdown
Raw Normal View History

2023-09-21 17:21:50 +08:00
# Docker
## Dockerfile
You can deploy Livebook inside your infrastructure using Docker. The Dockerfile below provides a great starting point:
```dockerfile
FROM ghcr.io/livebook-dev/livebook:edge
# Configure your port accordingly
ENV LIVEBOOK_PORT 7860
EXPOSE 7860
# If you have a persistent volume, configure it here
ENV LIVEBOOK_DATA_PATH "/data"
USER root
RUN mkdir -p /data
RUN chmod 777 /data
```
To configure your Livebook instance, you can use [these environment variables](../../README.md#environment-variables).
2023-09-21 17:21:50 +08:00
If you plan to limit access to your Livebook via a proxy, we recommend leaving the "/public" route of your instances still public. This route is used for integration with the [Livebook Badge](https://livebook.dev/badge/) and other conveniences.
## Livebook Teams
[Livebook Teams](https://livebook.dev/teams/) users have access to airgapped notebook deployment via Docker, with pre-configured Zero Trust Authentication, shared team secrets and file storages. To get started, open up Livebook, click "Add Organization" on the sidebar, and visit the "Airgapped Deployment" section of your organization.