Spaces:
Build error
Build error
File size: 1,612 Bytes
8a682b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | # docker-compose.yml
version: '3.8'
services:
platform-api:
build: .
ports:
- "8080:8080"
environment:
- REDIS_URL=redis://redis:6379
- LOG_LEVEL=INFO
depends_on:
- redis
volumes:
- ./logs:/app/logs
restart: unless-stopped
deploy:
replicas: 3
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 1G
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis-data:/data
command: redis-server --appendonly yes
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./deployment/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
grafana:
image: grafana/grafana:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafana-data:/var/lib/grafana
- ./deployment/monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards
- ./deployment/monitoring/grafana/datasources:/etc/grafana/provisioning/datasources
depends_on:
- prometheus
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl
depends_on:
- platform-api
volumes:
redis-data:
prometheus-data:
grafana-data: |