Files
seastem-electronjs/compose.yaml
T

28 lines
542 B
YAML

services:
app:
build: .
depends_on:
db:
condition: service_healthy
ports:
- '3000:3000'
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/postgres
db:
image: postgres:18
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
healthcheck:
test: [ 'CMD', 'pg_isready', '-U', 'postgres' ]
interval: 5s
timeout: 5s
retries: 5
volumes:
pgdata: