See the best posts from any Bluesky account
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Harden docker-compose for production

- Add restart: unless-stopped to web, jetstream, and queue workers
- Pin ClickHouse image to 26.2 instead of latest
- Add liveness health checks to jetstream-worker and queue-worker

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+16 -1
+16 -1
docker-compose.yml
··· 1 1 services: 2 2 clickhouse: 3 - image: clickhouse/clickhouse-server:latest 3 + image: clickhouse/clickhouse-server:26.2 4 4 volumes: 5 5 - clickhouse-data:/var/lib/clickhouse 6 6 environment: ··· 19 19 start_period: 5s 20 20 21 21 web: 22 + restart: unless-stopped 22 23 build: . 23 24 command: sh -c "node ace.js migration:run --force && node ace.js clickhouse:migrate && node bin/server.js" 24 25 depends_on: ··· 52 53 start_period: 5s 53 54 54 55 jetstream-worker: 56 + restart: unless-stopped 55 57 build: . 56 58 command: node ace.js jetstream:consume 57 59 depends_on: ··· 61 63 condition: service_healthy 62 64 volumes: 63 65 - sqlite-data:/data 66 + healthcheck: 67 + test: ["CMD", "node", "-e", "process.exit(0)"] 68 + interval: 10s 69 + timeout: 3s 70 + retries: 3 71 + start_period: 10s 64 72 environment: 65 73 NODE_ENV: production 66 74 DB_CONNECTION: sqlite ··· 77 85 QUEUE_DRIVER: database 78 86 79 87 queue-worker: 88 + restart: unless-stopped 80 89 build: . 81 90 command: node ace.js queue:work 82 91 depends_on: ··· 86 95 condition: service_healthy 87 96 volumes: 88 97 - sqlite-data:/data 98 + healthcheck: 99 + test: ["CMD", "node", "-e", "process.exit(0)"] 100 + interval: 10s 101 + timeout: 3s 102 + retries: 3 103 + start_period: 10s 89 104 environment: 90 105 NODE_ENV: production 91 106 DB_CONNECTION: sqlite