Skip to content

Files

Latest commit

eee5293 · Jun 1, 2025

History

History
52 lines (35 loc) · 1.06 KB

DOCKER.md

File metadata and controls

52 lines (35 loc) · 1.06 KB

Docker CLI Guide

Build the Image

Run this command in the directory containing the Dockerfile:

docker build -t flowlitics-backend-image .

Run the Container

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 first 2230 to your desired external port.
  • Runs the container in the background (-d).

Check Container Status

docker ps -a
  • Lists all containers, including stopped ones.
  • Use docker ps to see only running containers.

Stop the Container

docker stop flowlitics-backend

Remove the Container

docker rm flowlitics-backend

Or, to force stop and remove in one step:

docker rm -f flowlitics-backend

Remove the Image

docker rmi flowlitics-backend-image