mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-10-02 17:54:09 +10:00
Sorry, I'm just a devcontainer type of guy :D The restructure of the repo to a monorepo broke some things. I think I corrected them all so far. I had to add .pnpm-store to the root .gitignore, because the pnpm install in the container places it there. Alternatively, if that is not wanted, I could move the story via env variable afaik to another place inside the container outside of the repo.
29 lines
577 B
YAML
29 lines
577 B
YAML
services:
|
|
app:
|
|
image: mcr.microsoft.com/devcontainers/base:noble
|
|
command: sleep infinity
|
|
volumes:
|
|
- ../..:/workspaces/drop:cached
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
db:
|
|
image: postgres:14-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_USER: drop
|
|
POSTGRES_PASSWORD: drop
|
|
POSTGRES_DB: drop
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U drop -d drop"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 20
|
|
|
|
volumes:
|
|
pgdata:
|