Skip to content

Instantly share code, notes, and snippets.

@LinkSake
Last active August 30, 2024 01:22
Show Gist options
  • Save LinkSake/368f82f6e88e3d38aad7ef9b8bd71833 to your computer and use it in GitHub Desktop.
Save LinkSake/368f82f6e88e3d38aad7ef9b8bd71833 to your computer and use it in GitHub Desktop.
Livebook Docker Compose file
# Usage: `$ docker compose up -d` then visit `http://localhost:8080/`
services:
livebook:
restart: "always"
pull_policy: "always"
container_name: "<SOME_NAME>"
image: "ghcr.io/livebook-dev/livebook"
build:
context: .
args:
UID: "1000" # Get with `id -u`
GID: "1000" # Get with `id -g`
environment:
LIVEBOOK_IP: "0.0.0.0"
LIVEBOOK_PASSWORD: "<SOME_PASSWORD>"
ports:
- "8080:8080"
- "8081:8081"
volumes:
- "./data:/data" # Make sure that there's a *data* directory on the working directory
volumes:
livebook-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment