| 1 | |
| 2 | services: |
| 3 | |
| 4 | postgres: |
| 5 | restart: unless-stopped |
| 6 | deploy: |
| 7 | resources: |
| 8 | limits: |
| 9 | memory: 2g |
| 10 | environment: |
| 11 | POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=C" |
| 12 | command: > |
| 13 | postgres |
| 14 | -c shared_buffers=512MB |
| 15 | -c work_mem=16MB |
| 16 | -c maintenance_work_mem=128MB |
| 17 | -c effective_cache_size=1536MB |
| 18 | -c checkpoint_completion_target=0.9 |
| 19 | -c wal_buffers=16MB |
| 20 | -c default_statistics_target=100 |
| 21 | -c random_page_cost=1.1 |
| 22 | -c log_min_duration_statement=1000 |
| 23 | -c log_connections=off |
| 24 | |
| 25 | redis: |
| 26 | restart: unless-stopped |
| 27 | deploy: |
| 28 | resources: |
| 29 | limits: |
| 30 | memory: 256m |
| 31 | |
| 32 | nats: |
| 33 | restart: unless-stopped |
| 34 | deploy: |
| 35 | resources: |
| 36 | limits: |
| 37 | memory: 256m |
| 38 | |
| 39 | ntfy: |
| 40 | restart: unless-stopped |
| 41 | deploy: |
| 42 | resources: |
| 43 | limits: |
| 44 | memory: 64m |
| 45 | |
| 46 | backend: |
| 47 | restart: unless-stopped |
| 48 | deploy: |
| 49 | resources: |
| 50 | limits: |
| 51 | memory: 512m |
| 52 | environment: |
| 53 | LOG_LEVEL: info |
| 54 | RUST_LOG: "drophawk_backend=info,tower_http=warn" |
| 55 | |
| 56 | frontend: |
| 57 | restart: unless-stopped |
| 58 | deploy: |
| 59 | resources: |
| 60 | limits: |
| 61 | memory: 384m |
| 62 | environment: |
| 63 | NODE_ENV: production |
| 64 | |
| 65 | caddy: |
| 66 | restart: unless-stopped |
| 67 | deploy: |
| 68 | resources: |
| 69 | limits: |
| 70 | memory: 128m |
| 71 | |
| 72 | prometheus: |
| 73 | restart: unless-stopped |
| 74 | deploy: |
| 75 | resources: |
| 76 | limits: |
| 77 | memory: 512m |
| 78 | |
| 79 | grafana: |
| 80 | restart: unless-stopped |
| 81 | deploy: |
| 82 | resources: |
| 83 | limits: |
| 84 | memory: 256m |
| 85 | |
| 86 | loki: |
| 87 | restart: unless-stopped |
| 88 | deploy: |
| 89 | resources: |
| 90 | limits: |
| 91 | memory: 512m |