Skip to content

Conversation

@policyengine
Copy link

@policyengine policyengine bot commented Dec 8, 2025

Summary

  • Adds docker-compose.yml with services for API, development mode (hot-reload), testing, and optional MySQL for analytics
  • Adds .env.example with documented environment variables for Docker Compose
  • Updates Dockerfile.build for better integration with Docker Compose
  • Adds make docker-* targets for common operations
  • Updates README with Docker Compose quick start guide

Docker Compose Usage

# Copy environment template
cp .env.example .env

# Start the API
make docker-up

# Development mode with hot-reload
make docker-dev

# Run tests
make docker-test

Services

Service Profile Description
api default Production-like API service
api-dev dev Development with hot-reload
test test Run unit tests
test-with-auth test-auth Run auth integration tests
mysql analytics Local MySQL for analytics testing

Compatibility with GitHub Actions

This Docker Compose setup works alongside the existing GitHub Actions workflows. The GH Actions continue to work as before, but developers can now use Docker Compose for local development and testing.

Closes #896

Test plan

  • Verify docker compose build succeeds
  • Verify docker compose up starts the API
  • Verify docker compose --profile test run test runs tests
  • Verify existing GH Actions workflows still pass

🤖 Generated with Claude Code

- Add docker-compose.yml with services for API, development, testing, and optional MySQL
- Add .env.example with documented environment variables
- Update Dockerfile.build for better Docker Compose integration
- Add docker-* make targets for common operations
- Update README.md with Docker Compose quick start guide

Closes #896

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@nwoodruff-co
Copy link

@PolicyEngine can you look at the CI failures/wait for them to complete and fix issues?

@policyengine
Copy link
Author

policyengine bot commented Dec 8, 2025

I ran into an issue:

Claude Code timed out after 600s

@nwoodruff-co
Copy link

@PolicyEngine try getting tests to pass?

@policyengine
Copy link
Author

policyengine bot commented Dec 8, 2025

I ran into an issue:

Claude Code timed out after 600s

This fixes the module import conflict between test files with the
same name in different directories (e.g., test_auth.py in both
tests/unit/decorators/ and tests/integration_with_auth/).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@anth-volk
Copy link
Collaborator

Closing in favor of #1042

@anth-volk anth-volk closed this Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to Docker Compose structure (if usable alongside GH Actions)

4 participants