blob: a0cc7366657bb220764bf8ac797b90ae720b8949 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
version: "3.8"
services:
web:
image: ghcr.io/mohamedbassem/hoarder-web:latest
volumes:
- data:/data
ports:
- 3000:3000
environment:
REDIS_HOST: redis
DATABASE_URL: "file:/data/db.db"
depends_on:
migration:
condition: service_completed_successfully
redis:
image: redis:7.2-alpine
volumes:
- redis:/data
workers:
image: ghcr.io/mohamedbassem/hoarder-workers:latest
volumes:
- data:/data
environment:
REDIS_HOST: redis
DATABASE_URL: "file:/data/db.db"
# OPENAI_API_KEY: ...
depends_on:
migration:
condition: service_completed_successfully
migration:
image: ghcr.io/mohamedbassem/hoarder-workers:latest
environment:
DATABASE_URL: "file:/data/db.db"
volumes:
- data:/data
command:
- /bin/sh
- -c
- "cd /app/packages/db && yarn dlx prisma migrate deploy"
volumes:
redis:
data:
|