Skip to content

Commit

Permalink
fix: Development dockerfile database access
Browse files Browse the repository at this point in the history
- Development dockerfile now contains DB access string.
- Plugin container now relies on db container.
- DB now uses named volume for storage instead of bind mount.
  • Loading branch information
gbdlin committed Aug 12, 2024
1 parent 2da38dd commit eb6424a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build: .
container_name: plugin_store
environment:
- DB_URL
- DB_URL=postgresql+asyncpg://decky:decky@postgres_db/decky
- ANNOUNCEMENT_WEBHOOK
- SUBMIT_AUTH_KEY=deadbeef
- B2_APP_KEY_ID
Expand All @@ -16,6 +16,9 @@ services:
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
Expand All @@ -31,4 +34,7 @@ services:
- POSTGRES_USER=decky
- POSTGRES_PASSWORD=decky
volumes:
- ../store-postgres:/var/lib/postgresql/data
- store-postgres:/var/lib/postgresql/data

volumes:
store-postgres:

0 comments on commit eb6424a

Please sign in to comment.