Skip to content

Docker

Running in Docker

You can get access to the CLI or development environment using Docker.

Prerequisites

Quickstart

  1. Create a .env file in the project root directory with the following content:
URL=https://parsera.org
FILE=/app/scheme.json
OUTPUT=/app/output/result.json
SCROLLS=5
  1. Create scheme.json file with the parsing scheme in the repository root directory.

  2. Run make up in this directory.

  3. The output will be saved as output/results.json file.

Docker Make Targets

make build # Build Docker image

make up # Start containers using Docker Compose

make down # Stop and remove containers using Docker Compose

make restart # Restart containers using Docker Compose

make logs # View logs of the containers

make shell # Open a shell in the running container

make clean # Remove all stopped containers, unused networks, and dangling images