Deployment with Docker
Blacksmith can be used inside a Docker container using one of the official Docker images:
blacksmith-standardfor Blacksmith Standard Edition
blacksmith-enterprisefor Blacksmith Enterprise Edition
Images follow the convention:
editionis the Blacksmith Edition and is one of
versionis the Blacksmith version. Defaults to
distributionis one of
buster. Defaults to
We recommend to always explicitly set the
version to avoid any surprises in
When generating a new Blacksmith application, Dockerfiles are created as well with:
Dockerfile.serverfor running the server;
Dockerfile.loaderfor running the worker
Dockerfile.operatorfor running the worker
Dockerfile.gatewayfor running the gateway.
A valid Dockerfile for running Blacksmith should look like this:
FROM nunchistudio/blacksmith-enterprise:1.0.0-alpine # Copy the application inside the container. COPY ./ /app WORKDIR /app # Start the Blacksmith worker 'loader'. CMD ["blacksmith", "start", "worker", "loader"]
If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the repository. Once we merge it, the changes will be reflected on the website the next time it is deployed.
Thank you for your contributions!