Files
Skori/docker-compose.yml
T
Zed ce1db937f2
Build and Publish Docker Image / build-and-push-image (push) Successful in 1m48s
rework pwa cc
2026-07-11 02:01:08 +02:00

48 lines
1.0 KiB
YAML

version: '3.8'
services:
board-score:
build:
context: .
dockerfile: Dockerfile
container_name: board-score-app
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- backend
backend:
build:
context: ./server
dockerfile: Dockerfile
container_name: skori-backend
restart: unless-stopped
environment:
NODE_ENV: production
PORT: 3001
DATABASE_URL: postgres://skori:${POSTGRES_PASSWORD:-skori}@postgres:5432/skori
JWT_SECRET: ${JWT_SECRET:-change-me-in-production}
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
container_name: skori-postgres
restart: unless-stopped
environment:
POSTGRES_USER: skori
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-skori}
POSTGRES_DB: skori
volumes:
- skori-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U skori -d skori"]
interval: 5s
timeout: 5s
retries: 10
volumes:
skori-pgdata: