Skip to content

Commit

Permalink
fix docker-compose.yml to work with new Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed May 22, 2024
1 parent 64c54c5 commit 906596d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions autogpt/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,24 @@ version: "3.9"

services:
auto-gpt:
build: ./
build:
context: ../
dockerfile: Dockerfile.autogpt
env_file:
- .env
ports:
- "8000:8000"
volumes:
- ./:/app
- ./:/app/autogpt/
- ./docker-compose.yml:/app/docker-compose.yml:ro
- ./Dockerfile:/app/Dockerfile: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: ./
build:
context: ../
dockerfile: Dockerfile.autogpt
env_file:
- .env
environment:
Expand All @@ -29,8 +33,8 @@ services:
entrypoint: ["poetry", "run"]
command: ["pytest", "-v"]
volumes:
- ./autogpt:/app/autogpt
- ./tests:/app/tests
- ./autogpt:/app/autogpt/autogpt
- ./tests:/app/autogpt/tests
depends_on:
- minio
profiles: ["exclude-from-up"]
Expand Down

0 comments on commit 906596d

Please sign in to comment.