Files
peakskills/docker-compose.yml
Julien Froidefond ad7d03ebef
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 1m40s
chore: add Watchtower label to prevent automatic updates in docker-compose.yml
2025-12-11 12:11:35 +01:00

58 lines
1.4 KiB
YAML

version: "3.8"
services:
peakskills-app:
build: .
ports:
- "3008:3000"
environment:
NODE_ENV: production
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: peakskills
DB_USER: peakskills_user
DB_PASSWORD: peakskills_password
NEXT_PUBLIC_API_URL: ""
# Auth.js configuration
AUTH_SECRET: ${AUTH_SECRET:-FvhDat3sJK5TI1L4fcugCGFmLsO1BCi+mwSYeLkl8JA=}
AUTH_TRUST_HOST: "true"
AUTH_URL: ${AUTH_URL:-http://localhost:3008}
depends_on:
peakskills-postgres:
condition: service_healthy
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=false"
peakskills-postgres:
image: postgres:15
environment:
POSTGRES_DB: peakskills
POSTGRES_USER: peakskills_user
POSTGRES_PASSWORD: peakskills_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U peakskills_user -d peakskills"]
interval: 10s
timeout: 5s
retries: 5
# Adminer - Interface web pour PostgreSQL
# peakskills-adminer:
# image: adminer:4.8.1
# restart: always
# ports:
# - "8080:8080"
# environment:
# ADMINER_DEFAULT_SERVER: postgres
# ADMINER_DESIGN: pepa-linha-dark
# depends_on:
# - peakskills-postgres
volumes:
postgres_data: