LiveCodes
★ 1.5kAbout
Community Ratings
No ratings yetNew this week
Read recap →Features
- 90+ languages/frameworks/processors
- Browser-based client-side execution
- Embedded playgrounds
- Import/export projects
- Share links
- Starter templates
- Assets support
- Themes
- Broadcast and sync
- Backup/restore
Details
- Last Updated
- Nov 23, 2026
- Created
- Jan 10, 2021
- Install Methods
- dockerbinarypackage-manager
- Requirements
- A static file server for self-hosting
- Authentication
- local
- Backup & Export
- native-exportfile-backup
- Runtime / Stack
- Nodejs
- Privacy & Independence
- No Cloud RequiredOffline Capable
- Theming
- Custom themes
- Deployment
Deployment: Docker Compose ✓3 Containers — light hosting footprintRuns as 3 containers
Run LiveCodes yourself
Pick how much you want to manage.
netcupBest match
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
Hetzner
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
DigitalOcean
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
1 more way to host
Some links earn us a commission. netcup pays us one and is our preferred VPS host.
Is this your project? Sponsor a listing
Run LiveCodes with Docker Compose
Compose file from the LiveCodes project repository.
3 services · infra: valkey, caddy
no resource limits declared
needs persistent storage (6 volumes)
docker-compose.yml · @ 7470548 · scanned Nov 3, 2026
services:
app:
build:
context: .
dockerfile: Dockerfile
args:
- SELF_HOSTED=true
- SELF_HOSTED_SHARE=${SELF_HOSTED_SHARE:-true}
- SELF_HOSTED_BROADCAST=${SELF_HOSTED_BROADCAST:-true}
- BROADCAST_PORT=${BROADCAST_PORT:-3030}
- SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
- SANDBOX_PORT=${SANDBOX_PORT:-8090}
- FIREBASE_CONFIG=${FIREBASE_CONFIG:-}
- DOCS_BASE_URL=null
- LOCAL_MODULES=${LOCAL_MODULES:-false}
- NODE_OPTIONS=--max-old-space-size=8192
restart: unless-stopped
environment:
- SELF_HOSTED=true
- HOST_NAME=${HOST_NAME:-livecodes.localhost}
- PORT=${PORT:-443}
- SELF_HOSTED_SHARE=${SELF_HOSTED_SHARE:-true}
- SELF_HOSTED_BROADCAST=${SELF_HOSTED_BROADCAST:-true}
- BROADCAST_PORT=${BROADCAST_PORT:-3030}
- BROADCAST_TOKENS=${BROADCAST_TOKENS:-}
- SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
- SANDBOX_PORT=${SANDBOX_PORT:-8090}
- LOG_URL=${LOG_URL:-null}
- VALKEY_HOST=valkey
- VALKEY_PORT=6379
- NODE_OPTIONS=--max-old-space-size=8192
volumes:
- ./assets:/srv/build/assets
depends_on:
- valkey
valkey:
image: valkey/valkey:8.1.2-alpine3.22
restart: on-failure
volumes:
- valkey-data:/data
command:
[
"sh",
"-c",
'if [ "$SELF_HOSTED_SHARE" != "false" ]; then valkey-server --save 60 1 --loglevel warning; fi',
]
server:
image: caddy:2.10.0-alpine
entrypoint: ["/bin/sh", "./entrypoint.sh"]
command:
[
"caddy",
"run",
"--config",
"/etc/caddy/Caddyfile",
"--adapter",
"caddyfile",
]
restart: unless-stopped
ports:
- "80:80"
- "${PORT:-443}:${PORT:-443}"
- "${SANDBOX_PORT:-8090}:${SANDBOX_PORT:-8090}"
- "${BROADCAST_PORT:-3030}:${BROADCAST_PORT:-3030}"
environment:
- HOST_NAME=${HOST_NAME:-livecodes.localhost}
- PORT=${PORT:-443}
- SANDBOX_HOST_NAME=${SANDBOX_HOST_NAME:-${HOST_NAME:-livecodes.localhost}}
- SANDBOX_PORT=${SANDBOX_PORT:-8090}
- BROADCAST_PORT=${BROADCAST_PORT:-3030}
volumes:
- ./server/caddy/entrypoint.sh:/srv/entrypoint.sh
- ./server/caddy/Caddyfile:/etc/caddy/Caddyfile
- ./server/data/caddy/data:/data
- ./server/data/caddy/config:/config
depends_on:
- app
volumes:
valkey-data:
name: livecodes-share-data
This file may be out of date. Check the LiveCodes documentation for current setup steps.
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.