···99version: "3.8"
10101111services:
1212+ redis:
1313+ image: redis:7-alpine
1414+ container_name: skywatch-automod-redis
1515+ restart: unless-stopped
1616+ volumes:
1717+ - redis-data:/data
1818+ networks:
1919+ - skywatch-network
2020+ healthcheck:
2121+ test: ["CMD", "redis-cli", "ping"]
2222+ interval: 10s
2323+ timeout: 3s
2424+ retries: 3
2525+1226 automod:
1327 # Build the Docker image from the Dockerfile in the current directory.
1428 build: .
···2640 env_file:
2741 - .env
28424343+ # Wait for Redis to be healthy before starting
4444+ depends_on:
4545+ redis:
4646+ condition: service_healthy
4747+4848+ networks:
4949+ - skywatch-network
5050+2951 # Mount a volume to persist the firehose cursor.
3052 # This links the `cursor.txt` file from your host into the container at `/app/cursor.txt`.
3153 # Persisting this file allows the automod to resume from where it left off
3254 # after a restart, preventing it from reprocessing old events or skipping new ones.
3355 volumes:
3456 - ./cursor.txt:/app/cursor.txt
5757+5858+ environment:
5959+ - NODE_ENV=production
6060+ - REDIS_URL=redis://redis:6379
6161+6262+volumes:
6363+ redis-data:
6464+6565+networks:
6666+ skywatch-network:
6767+ driver: bridge