-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.local.yml
44 lines (41 loc) · 1.05 KB
/
docker-compose.local.yml
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
services:
plugin_store:
build: .
container_name: plugin_store
environment:
- DB_URL=postgresql+asyncpg://decky:decky@postgres_db/decky
- ANNOUNCEMENT_WEBHOOK
- SUBMIT_AUTH_KEY=deadbeef
- B2_APP_KEY_ID
- B2_APP_KEY
- B2_BUCKET_ID
volumes:
- .:/app
restart: unless-stopped
ports:
- "5566:5566"
command: uvicorn main:app --reload --host 0.0.0.0 --port 5566
depends_on:
postgres_db:
condition: service_healthy
redis_db:
image: redis:latest
restart: unless-stopped
environment:
- REDIS_PORT=6379
postgres_db:
image: postgres:16 # Postgres databases are only compatible with their same major version
restart: unless-stopped
environment:
- POSTGRES_DB=decky
- POSTGRES_USER=decky
- POSTGRES_PASSWORD=decky
volumes:
- store-postgres:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U myuser -d db_prod
interval: 10s
timeout: 3s
retries: 3
volumes:
store-postgres: