Deployment with Docker
Blacksmith can be used inside a Docker container using one of the official Docker images:
blacksmith
orblacksmith-standard
for Blacksmith Standard Editionblacksmith-enterprise
for Blacksmith Enterprise Edition
Images follow the convention:
nunchistudio/blacksmith[-edition]:[version][-distribution]
:
edition
is the Blacksmith Edition and is one ofstandard
,enterprise.
Defaults tostandard
.version
is the Blacksmith version. We recommend to always explicitly set theversion
to avoid any surprises in production. Theversion
must match the version constraints defined. Defaults tolatest
.distribution
is one ofalpine
,bullseye
,buster
. Defaults tobullseye
.
When generating a new Blacksmith application, Dockerfiles are created as well with:
Dockerfile.server
for running the server;Dockerfile.loader
for running the workerloader
;Dockerfile.operator
for running the workeroperator
;Dockerfile.gateway
for 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"]
Is something missing?
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!