diff options
author | 2024-08-17 15:06:12 +0100 | |
---|---|---|
committer | 2024-08-17 15:06:22 +0100 | |
commit | 0f4eb651d16a2185c92ae460672374ae0e650056 (patch) | |
tree | 69453754bfee19d02b517e2780d03a63275c8a92 | |
parent | Set default Dockerfile on input instead of expression (diff) |
Cache from ghcr.io for backend & frontend in docker-compose.yml
-rw-r--r-- | docker-compose.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 3abedce..3605c7a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,10 @@ services: - "15432:5432" thallium-backend: - build: thallium-backend + build: + context: thallium-backend + cache_from: + - type=registry,ref=ghcr.io/owl-corp/thallium-backend:latest restart: unless-stopped command: ["alembic upgrade head && uvicorn src.app:fastapi_app --host 0.0.0.0 --port 8000 --reload"] volumes: @@ -35,6 +38,8 @@ services: build: context: thallium-frontend dockerfile: Dockerfile.development + cache_from: + - type=registry,ref=ghcr.io/owl-corp/thallium-frontend:latest restart: unless-stopped volumes: # Once https://github.com/vitejs/vite/issues/9470 has a nice solution, we can make the mount read-only |