Skip to content

Commit

Permalink
docker: Point docker compose to the published docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 20, 2024
1 parent 558b952 commit dbdde49
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
version: "3.8"
services:
web:
build:
context: .
target: web
image: ghcr.io/mohamedbassem/hoarder-web:latest
volumes:
- data:/data
ports:
- 3000:3000
env_file:
- "packages/web/.env.local"
environment:
REDIS_HOST: redis
DATABASE_URL: "file:/data/db.db"
Expand All @@ -18,28 +14,20 @@ services:
condition: service_completed_successfully
redis:
image: redis:7.2-alpine
ports:
- 6379:6379
volumes:
- redis:/data
workers:
build:
context: .
target: workers
image: ghcr.io/mohamedbassem/hoarder-workers:latest
volumes:
- data:/data
env_file:
- "packages/workers/.env"
environment:
REDIS_HOST: redis
DATABASE_URL: "file:/data/db.db"
depends_on:
migration:
condition: service_completed_successfully
migration:
build:
context: .
target: workers
image: ghcr.io/mohamedbassem/hoarder-workers:latest
environment:
DATABASE_URL: "file:/data/db.db"
volumes:
Expand Down

0 comments on commit dbdde49

Please sign in to comment.