Docker Compose
Setup using Docker Compose
Setup using Docker
The easiest way to get started with Wraft is using Docker. The Docker setup includes all required dependencies and services.
Prerequisites
- Docker and Docker Compose installed on your system
- Git
Quick Start
- Clone the repository and navigate into it
- Copy the example environment file and update it
- Verify Required Environment Variables
Make sure the following variables are set in your .env
file:
- Load environment variables
- Add MinIO host entry
- Start all Docker containers
- Visit the application
Default Credentials
Environment Variables
Make sure to configure the following environment variables in your .env
file:
SECRET_KEY_BASE
DEV_DB_USERNAME
DEV_DB_PASSWORD
DEV_DB_NAME
MINIO_ROOT_USER
/MINIO_ROOT_PASSWORD
TYPESENSE_API_KEY
CLOAK_KEY
GUARDIAN_KEY
- And other required variables (see
.env.example
)
What's Included
The Docker setup includes:
- Backend: Elixir 1.18.4 with Erlang 27.0.1
- Frontend: React application
- Database: PostgreSQL 14
- Object Storage: MinIO (S3-compatible)
- Search Engine: Typesense
- Dependencies: Pandoc 3.6.3, Typst 0.13.0, LaTeX, ImageMagick, Java 17, Rust toolchain
Services and Ports
- Frontend: http://localhost:3200
- Backend API: http://localhost:4000
- MinIO Console: http://localhost:9001
- PostgreSQL: localhost:5433
- Typesense: localhost:8108
Stopping the Services
To remove all data volumes as well: