Run Jolimail with docker - jdrouet/jolimail GitHub Wiki
💌 Jolimail is a quite simple web application built with 🦀 Rust and React and is made to run in a 🐳 Docker environment.
It has, as a single dependency, 🐘 Postgres as a database.
In the following sections, everything will rely on docker-compose.
Let start with a simple compose file to run jolimail locally
version: "2.4"
services:
database:
image: postgres:13-alpine
environment:
- POSTGRES_DB=jolimail
- POSTGRES_USER=jolimail
- POSTGRES_PASSWORD=random_password
volumes:
- /where/you/want/to/store/the/data:/var/lib/postgresql/data
networks:
- backend
restart: unless-stopped
jolimail:
image: jdrouet/jolimail:latest
environment:
- DATABASE_HOST=database
- DATABASE_USER=jolimail
- DATABASE_DBNAME=jolimail
- DATABASE_PASSWORD=random_password
# this is the base URL of catapulte used in the examples
- EXAMPLE_CATAPULTE_BASE_URL=http://localhost:3010
# you can adjust the logs with info, debug, warn, error
- RUST_LOG=info
depends_on:
- database
networks:
- backend
ports:
- 3000:3000
restart: unless-stopped
networks:
backend: {}
Then, by doing docker-compose up
you should be able to open your browser and see the main page.
Now, to have an instance of Catapulte started to be able to start the whole pipeline, it is described here