Rename docker-compose.yml -> .yaml (Coolify default compose location)
This commit is contained in:
parent
3806fa917b
commit
475bcf9448
1 changed files with 0 additions and 0 deletions
33
docker-compose.yaml
Normal file
33
docker-compose.yaml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "3000"
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://demoplatform:${DB_PASSWORD:-demoplatform}@db:5432/demoplatform
|
||||
- DATA_DIR=/data
|
||||
volumes:
|
||||
- app-data:/data
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
|
||||
db:
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- POSTGRES_USER=demoplatform
|
||||
- POSTGRES_PASSWORD=${DB_PASSWORD:-demoplatform}
|
||||
- POSTGRES_DB=demoplatform
|
||||
volumes:
|
||||
- db-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U demoplatform"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
app-data:
|
||||
db-data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue