forked from nickthecook/archyve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
72 lines (71 loc) · 1.8 KB
/
compose.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "3.5"
services:
redis:
image: redis:alpine
volumes:
- "redis:/data"
restart: unless-stopped
postgres:
image: postgres:16-alpine
volumes:
- "postgres:/var/lib/postgresql/data"
environment:
POSTGRES_USER: archyve
POSTGRES_PASSWORD: password
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U archyve"]
interval: 5s
timeout: 5s
retries: 5
chromadb:
image: chromadb/chroma:latest
volumes:
- chromadb:/chroma/chroma
command: "--workers 1 --host 0.0.0.0 --port 8000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30"
environment:
- IS_PERSISTENT=TRUE
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/v1/heartbeat" ]
interval: 30s
timeout: 10s
retries: 3
archyve:
image: archyve:local
build: .
env_file: ./local.env
restart: unless-stopped
volumes:
- archyve_files:/rails/storage
- ./config/local:/rails/config/local
# this needs to be edited to give podman access to host
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 3300:3000
depends_on:
- redis
- postgres
archyve-worker:
image: archyve:local
env_file: ./local.env
restart: unless-stopped
volumes:
- archyve_files:/rails/storage
- ./config/local:/rails/config/local
# this needs to be edited to give podman access to host
extra_hosts:
- "host.docker.internal:host-gateway"
command: ['/bin/bash', '-c', 'bin/rails db:seed && bundle exec sidekiq']
depends_on:
- redis
- postgres
- archyve
environment:
RUN_SIDEKIQ: true
volumes:
redis:
postgres:
chromadb:
archyve_files: