Traefik
This guide walks you through setting up and running Elsa Server and Studio using a Docker Compose file. The setup includes PostgreSQL as the database, Traefik as a reverse proxy, and Elsa workflows.
Docker Compose Configuration
The following docker-compose.yml
file defines services for:
PostgreSQL database for data persistence.
Elsa Server and Studio, configured to use PostgreSQL.
Traefik reverse proxy for routing requests to the appropriate service.
Setup Instructions
Follow these steps to set up and run the Docker Compose configuration:
Ensure you have Docker and Docker Compose installed on your machine. Refer to the prerequisites if necessary.
Create a file named
docker-compose.yml
and paste the provided configuration into it.Run the following command in the directory containing the
docker-compose.yml
file to start the services:Edit your
/etc/hosts
file (on Linux/Mac) orC:\Windows\System32\drivers\etc\hosts
(on Windows) to include the following entry for mappingelsa.localhost
to127.0.0.1
:Once the services are running:
Access Elsa Studio at http://elsa.localhost:1280.
Open the Traefik dashboard at http://localhost:8080.
Environment Configuration
The environment variables and settings used in this Docker Compose file:
PostgreSQL: The database user, password, and name are configured as
elsa
.Elsa Server and Studio: Configured to use PostgreSQL as the database provider.
Traefik: Acts as a reverse proxy with routing rules for
elsa.localhost
.
Troubleshooting
If you encounter issues, check the following:
Ensure Docker and Docker Compose are correctly installed and running.
Verify the
/etc/hosts
file includes an entry forelsa.localhost
mapping to127.0.0.1
.Inspect logs for each service using
docker-compose logs [service-name]
.
Last updated