Skip to content

Instantly share code, notes, and snippets.

@Adammatthiesen
Last active April 18, 2025 04:23
Show Gist options
  • Save Adammatthiesen/bfe7c78b2e73996fb3ef1b36ed606a57 to your computer and use it in GitHub Desktop.
Save Adammatthiesen/bfe7c78b2e73996fb3ef1b36ed606a57 to your computer and use it in GitHub Desktop.
Turso libSQL for Coolify
services:
libsql:
image: ghcr.io/tursodatabase/libsql-server:latest
platform: linux/amd64
ports:
# Used for inter-node communication
# see https://github.com/tursodatabase/libsql/blob/main/docs/DOCKER.md#sqld_grpc_listen_addr
- "5001:5001"
# Port 8080 is exposed using the 'SERVICE_FQDN_LIBSQL_8080' so unless you need direct access
# instead of access through coolify-proxy leave 8080 commented out.
# - "8080:8080"
environment:
- SERVICE_FQDN_LIBSQL_8080
# Generated JWT Token (NOT THE KEY FILE)
- 'SQLD_AUTH_JWT_KEY=${SQLD_AUTH_JWT_KEY}'
- 'SQLD_NODE=${SQLD_NODE:-primary}'
volumes:
- 'libsqldata:/var/lib/sqld'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment