mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 07:38:04 -05:00
- Move `autogpt/Dockerfile` to `Dockerfile.autogpt` - Write new selective `.dockerignore` (in repo root) to keep build context clean - Amend `autogpt/docker-compose.yml` and all `autogpt-docker-*.yml` workflows accordingly - Include `forge/` in docker build context so it can be used as a path dependency - Include `frontend/` in docker builds
54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
# To boot the app run the following:
|
|
# docker compose run auto-gpt
|
|
# NOTE: Version 3.9 requires at least Docker Compose version 2 and Docker Engine version 20.10.13!
|
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
auto-gpt:
|
|
build:
|
|
context: ../
|
|
dockerfile: Dockerfile.autogpt
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./:/app/autogpt/
|
|
- ./docker-compose.yml:/app/docker-compose.yml:ro
|
|
# - ./Dockerfile:/app/Dockerfile:ro
|
|
profiles: ["exclude-from-up"]
|
|
|
|
# Only for TESTING purposes. Run with: docker compose run --build --rm autogpt-test
|
|
autogpt-test:
|
|
build:
|
|
context: ../
|
|
dockerfile: Dockerfile.autogpt
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
S3_ENDPOINT_URL: http://minio:9000
|
|
AWS_ACCESS_KEY_ID: minio
|
|
AWS_SECRET_ACCESS_KEY: minio123
|
|
entrypoint: ["poetry", "run"]
|
|
command: ["pytest", "-v"]
|
|
volumes:
|
|
- ./autogpt:/app/autogpt/autogpt
|
|
- ./tests:/app/autogpt/tests
|
|
depends_on:
|
|
- minio
|
|
profiles: ["exclude-from-up"]
|
|
minio:
|
|
image: minio/minio
|
|
environment:
|
|
MINIO_ACCESS_KEY: minio
|
|
MINIO_SECRET_KEY: minio123
|
|
ports:
|
|
- 9000:9000
|
|
volumes:
|
|
- minio-data:/data
|
|
command: server /data
|
|
profiles: ["exclude-from-up"]
|
|
volumes:
|
|
minio-data:
|