| # Docker Compose for SuperTonic3 OpenAI-Compatible Server | |
| services: | |
| supertonic3: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| image: supertonic3-openai-server:latest | |
| container_name: supertonic3-server | |
| ports: | |
| - '${SUPERTONIC3_PORT:-7860}:7860' | |
| environment: | |
| - SUPERTONIC3_HOST=0.0.0.0 | |
| - SUPERTONIC3_PORT=7860 | |
| - SUPERTONIC3_LOG_LEVEL=${SUPERTONIC3_LOG_LEVEL:-INFO} | |
| - SUPERTONIC3_STREAM_DEFAULT=${SUPERTONIC3_STREAM_DEFAULT:-true} | |
| - SUPERTONIC3_VOICE=${SUPERTONIC3_VOICE:-M1} | |
| volumes: | |
| - ./logs:/app/logs | |
| restart: unless-stopped | |
| deploy: | |
| resources: | |
| limits: | |
| memory: 4G | |
| reservations: | |
| memory: 2G | |
| healthcheck: | |
| test: | |
| [ | |
| 'CMD', | |
| 'python', | |
| '-c', | |
| "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')", | |
| ] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 120s | |