services: api: build: . container_name: neda_api ports: - "8000:8000" env_file: - .env depends_on: postgres: condition: service_healthy redis: condition: service_healthy livekit: condition: service_started restart: always postgres: image: postgres:17-alpine container_name: neda_postgres environment: POSTGRES_DB: ${POSTGRES_DB} POSTGRES_USER: ${POSTGRES_USER} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - postgres_data:/var/lib/postgresql/data restart: always healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"] interval: 5s timeout: 5s retries: 3 redis: image: redis:7-alpine container_name: neda_redis volumes: - redis_data:/data restart: always healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 5 livekit: image: livekit/livekit-server container_name: neda_livekit command: --config /etc/livekit.yaml volumes: - ./livekit.yaml:/etc/livekit.yaml ports: - "7880:7880" - "7881:7881" - "7882:7882/udp" restart: always volumes: postgres_data: redis_data: