services: sms-gateway: build: . ports: - "8100:8000" volumes: - ./config.yaml:/app/config.yaml:ro environment: - CONFIG_PATH=/app/config.yaml depends_on: redis: condition: service_healthy restart: unless-stopped redis: image: redis:7-alpine command: redis-server --save 60 1 --loglevel warning volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 3s retries: 5 restart: unless-stopped volumes: redis_data: