docker-compose.yml
954 bytes
| 1 | # voicetask.rasmusj.com |
|---|---|
| 2 | # |
| 3 | # Caddy already runs on the external `web` network and terminates TLS, so |
| 4 | # nothing is published to the host and the domain lives in /opt/caddy/Caddyfile. |
| 5 | # |
| 6 | # No API keys are set, and none can be added over HTTP: the container runs in |
| 7 | # public mode, which locks the offline mock providers on. So the demo shows the |
| 8 | # whole interview-to-spec flow and costs nothing to leave running. |
| 9 | |
| 10 | name: voicetask |
| 11 | |
| 12 | services: |
| 13 | voicetask: |
| 14 | build: . |
| 15 | container_name: voicetask |
| 16 | restart: unless-stopped |
| 17 | environment: |
| 18 | PORT: '3000' |
| 19 | volumes: |
| 20 | # Sessions are throwaway, so they live in a volume rather than the image |
| 21 | # layer and can be cleared by removing it. |
| 22 | - voicetask-sessions:/app/data |
| 23 | networks: |
| 24 | - web |
| 25 | expose: |
| 26 | - '3000' |
| 27 | logging: |
| 28 | driver: json-file |
| 29 | options: |
| 30 | max-size: '10m' |
| 31 | max-file: '3' |
| 32 | |
| 33 | volumes: |
| 34 | voicetask-sessions: |
| 35 | |
| 36 | networks: |
| 37 | web: |
| 38 | external: true |
| 39 | |