Skip to content

Create the docker-compose.yml for Local Development #7

@sahoo-tech

Description

@sahoo-tech

Labels: good first issue setup gssoc-2026

Contributors need to be able to spin up all Execra services with one command. Build the Docker Compose file that defines all services.

What you'll code:

  • Create docker-compose.yml with these services:
    • execra-api: build from Dockerfile, port 8000:8000, depends on execra-db, mounts .env
    • execra-db: uses redis:7-alpine image, port 6379:6379
    • execra-frontend: build from frontend/Dockerfile (placeholder), port 3000:3000
  • Add healthcheck for execra-api (ping GET /) and execra-db (redis-cli ping)
  • Create a minimal Dockerfile for the Python API:
    FROM python:3.11-slim
    WORKDIR /app
    COPY requirements.txt .
    RUN pip install -r requirements.txt
    COPY . .
    CMD ["python", "main.py"]
  • Verify docker-compose config validates without errors

Skills needed: Docker · Docker Compose · YAML

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions