services: postgres: image: postgres:16-alpine container_name: auditflow-postgres environment: POSTGRES_DB: auditflow POSTGRES_USER: postgres POSTGRES_PASSWORD: postgrespassword ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: auditflow-redis ports: - "6379:6379" healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 backend: build: context: ./backend dockerfile: Dockerfile container_name: auditflow-backend environment: SPRING_PROFILES_ACTIVE: prod SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/auditflow SPRING_DATASOURCE_USERNAME: postgres SPRING_DATASOURCE_PASSWORD: postgrespassword SPRING_REDIS_HOST: redis SPRING_REDIS_PORT: 6379 JWT_SECRET: ProductionSuperSecretKeyWith64BytesLengthForAuditFlowPlatform2026SecureKey! ports: - "8080:8080" depends_on: postgres: condition: service_healthy redis: condition: service_healthy frontend: build: context: ./frontend dockerfile: Dockerfile container_name: auditflow-frontend ports: - "80:80" depends_on: - backend volumes: postgres_data: