Run this command in the directory containing the Dockerfile
:
docker build -t flowlitics-backend-image .
docker run -d --env-file .env --name flowlitics-backend -p 2230:2230 flowlitics-backend-image
- Before running the command, you need to create the
.env
file with the necessary configuration. See.env.example
for a template of all required variables. - Maps port 2230 from the container to the host (
-p 2230:2230
). Change the first2230
to your desired external port. - Runs the container in the background (
-d
).
docker ps -a
- Lists all containers, including stopped ones.
- Use
docker ps
to see only running containers.
docker stop flowlitics-backend
docker rm flowlitics-backend
Or, to force stop and remove in one step:
docker rm -f flowlitics-backend
docker rmi flowlitics-backend-image