Files
TypstDrive/docker-compose.yml
T

26 lines
588 B
YAML

services:
app:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=sqlite:///data/typstdrive.db?mode=rwc
- DB_TYPE=sqlite # set to "postgres" with a postgres DATABASE_URL to use PostgreSQL
volumes:
- appdata:/data
# Uncomment to use PostgreSQL instead of SQLite
# db:
# image: postgres:16-alpine
# environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: password
# POSTGRES_DB: typstdrive
# ports:
# - "5433:5432"
# volumes:
# - appdata:/var/lib/postgresql/data
volumes:
appdata: