Quick Start with Docker
Prerequisites:
Before starting, ensure the following requirements are met:
- Docker is installed Docker installation
Api installation
Pull the docker image
To get the latest version of flow8, pull the Docker images from the container registry:
For api:
docker pull docker.qix.sx/adentro/flow8:latestFor ui app:
docker pull docker.qix.sx/adentro/flow8-ui:latestCreate a .env File with environment variables.
Read more about in Environment variables section
Create flow8 docker network
docker network create flow8-netRun the containers
Run the application containers using the following commands:
For api:
docker run -d -v $(pwd)/.env:/app/.env --network=flow8-net --name=flow8-app -p 8085:4454 docker.qix.sx/adentro/flow8:latestFor ui app:
docker run -d --network=flow8-net --name=flow8-ui -p 8080:80 docker.qix.sx/adentro/flow8-ui:latestExplanation of the flags:
-d: Runs the container in detached mode (in the background).-v $(pwd)/.env:/app/.env: Volume for environment variables.--network=flow8-net: Docker network created on previos step.--name=flow8-app: Names the container flow8-app.-p 8080:4454: Maps port 8080 on the host to port 8080 in the container.docker.qix.sx/adentro/flow8:latest: Specifies the image to use.
Once the container is running, the application should be accessible at http://localhost:8080.