-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
32 lines (29 loc) · 900 Bytes
/
Copy pathcompose.dev.yml
File metadata and controls
32 lines (29 loc) · 900 Bytes
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
# Sólo la base de datos, para desarrollar con `npm run dev` en el host.
#
# docker compose -f compose.dev.yml up -d
# npm run dev # app en :3000
# npm run dev:worker # transcodificador (necesita ffmpeg instalado en el host)
#
# Para levantar el sistema COMPLETO en local (nginx + worker con ffmpeg, todo
# construido desde el código fuente), usa el entorno local:
# cd infra/local && docker compose up -d --build
name: moodleshield-dev
services:
db:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: moodleshield
POSTGRES_USER: moodleshield
POSTGRES_PASSWORD: moodleshield
ports:
- "127.0.0.1:5432:5432"
volumes:
- dev-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U moodleshield"]
interval: 5s
timeout: 3s
retries: 10
volumes:
dev-pgdata: