Files
templates/blueprints/mage-ai/docker-compose.yml
Khiet Tam Nguyen 0438165d43 feat(blueprint): mage ai template (#601)
* feat(blueprint): template for mage-ai

* fix: add healthcheck for mage-ai
2025-12-18 22:39:16 -06:00

27 lines
603 B
YAML

# https://docs.mage.ai/getting-started/setup#docker-compose
#
# The default credentials are:
# USERNAME: admin@admin.com
# PASSWORD: admin
services:
mage-ai:
image: mageai/mageai:0.9.78
command: mage start ${PROJECT_NAME}
environment:
USER_CODE_PATH: /home/src/${PROJECT_NAME}
ENV: ${ENV}
expose:
- 6789
volumes:
- mageai_data:/home/src/
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-s", "-f", "-o", "/dev/null", "http://localhost:6789"]
interval: 30s
timeout: 10s
retries: 5
volumes:
mageai_data: