All checks were successful
CI/CD Pipeline / Backend - Build, Test & Push (push) Successful in 16m18s
CI/CD Pipeline / Frontend - Build, Test & Push (push) Successful in 30m58s
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Deployment Summary (push) Successful in 2s
CI/CD Pipeline / Discord Notification (Failure) (push) Has been skipped
CI/CD Pipeline / Discord Notification (Success) (push) Successful in 1s
123 lines
2.8 KiB
YAML
123 lines
2.8 KiB
YAML
version: '3.8'
|
|
|
|
# Build local pour Mac ARM64
|
|
services:
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: xpeditis-postgres-dev
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DB: xpeditis_dev
|
|
POSTGRES_USER: xpeditis
|
|
POSTGRES_PASSWORD: xpeditis_dev_password
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U xpeditis"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
container_name: xpeditis-redis-dev
|
|
ports:
|
|
- "6379:6379"
|
|
command: redis-server --requirepass xpeditis_redis_password
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
container_name: xpeditis-minio-dev
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
command: server /data --console-address ":9001"
|
|
volumes:
|
|
- minio_data:/data
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
|
|
backend:
|
|
build:
|
|
context: ./apps/backend
|
|
dockerfile: Dockerfile
|
|
container_name: xpeditis-backend-dev
|
|
ports:
|
|
- "4001:4000"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_healthy
|
|
environment:
|
|
NODE_ENV: development
|
|
PORT: 4000
|
|
API_PREFIX: api/v1
|
|
|
|
# Database
|
|
DATABASE_HOST: postgres
|
|
DATABASE_PORT: 5432
|
|
DATABASE_USER: xpeditis
|
|
DATABASE_PASSWORD: xpeditis_dev_password
|
|
DATABASE_NAME: xpeditis_dev
|
|
DATABASE_SYNC: false
|
|
DATABASE_LOGGING: true
|
|
|
|
# Redis
|
|
REDIS_HOST: redis
|
|
REDIS_PORT: 6379
|
|
REDIS_PASSWORD: xpeditis_redis_password
|
|
REDIS_DB: 0
|
|
|
|
# JWT
|
|
JWT_SECRET: dev-secret-jwt-key-for-docker
|
|
JWT_ACCESS_EXPIRATION: 15m
|
|
JWT_REFRESH_EXPIRATION: 7d
|
|
|
|
# S3/MinIO
|
|
AWS_S3_ENDPOINT: http://minio:9000
|
|
AWS_REGION: us-east-1
|
|
AWS_ACCESS_KEY_ID: minioadmin
|
|
AWS_SECRET_ACCESS_KEY: minioadmin
|
|
AWS_S3_BUCKET: xpeditis-csv-rates
|
|
|
|
# CORS - Allow both localhost (browser) and container network
|
|
CORS_ORIGIN: "http://localhost:3001,http://localhost:4001"
|
|
|
|
# Application URL
|
|
APP_URL: http://localhost:3001
|
|
|
|
# Security
|
|
BCRYPT_ROUNDS: 10
|
|
SESSION_TIMEOUT_MS: 7200000
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_TTL: 60
|
|
RATE_LIMIT_MAX: 100
|
|
|
|
frontend:
|
|
build:
|
|
context: ./apps/frontend
|
|
dockerfile: Dockerfile
|
|
args:
|
|
NEXT_PUBLIC_API_URL: http://localhost:4001
|
|
container_name: xpeditis-frontend-dev
|
|
ports:
|
|
- "3001:3000"
|
|
depends_on:
|
|
- backend
|
|
environment:
|
|
NEXT_PUBLIC_API_URL: http://localhost:4001
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|
|
minio_data:
|