| 1 | services: |
| 2 | sillytavern: |
| 3 | build: .. |
| 4 | container_name: sillytavern |
| 5 | hostname: sillytavern |
| 6 | image: ghcr.io/sillytavern/sillytavern:latest |
| 7 | environment: |
| 8 | - NODE_ENV=production |
| 9 | - FORCE_COLOR=1 |
| 10 | - SILLYTAVERN_HEARTBEATINTERVAL=30 |
| 11 | ports: |
| 12 | - "8000:8000" |
| 13 | volumes: |
| 14 | - "./config:/home/node/app/config" |
| 15 | - "./data:/home/node/app/data" |
| 16 | - "./plugins:/home/node/app/plugins" |
| 17 | - "./extensions:/home/node/app/public/scripts/extensions/third-party" |
| 18 | healthcheck: |
| 19 | test: ["CMD", "node", "src/healthcheck.js"] |
| 20 | interval: 30s |
| 21 | timeout: 10s |
| 22 | start_period: 20s |
| 23 | retries: 3 |
| 24 | restart: unless-stopped |