Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download docker-compose.yml from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 987 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/docker-compose.yml
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/83a59cae175e3c9a43b6f5d3f8749ca61b6b5072/docker-compose.yml
987 Bytes
| services: | |
| postgres: | |
| image: postgres:alpine | |
| environment: | |
| POSTGRES_DB: httpsms | |
| POSTGRES_PASSWORD: dbpassword | |
| POSTGRES_USER: dbusername | |
| volumes: | |
| - postgres:/var/lib/postgresql/data | |
| ports: | |
| - "5435:5432" | |
| restart: on-failure | |
| healthcheck: | |
| test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] | |
| interval: 30s | |
| timeout: 60s | |
| retries: 5 | |
| start_period: 5s | |
| redis: | |
| image: redis:latest | |
| command: redis-server | |
| volumes: | |
| - redis:/var/lib/redis | |
| ports: | |
| - "6379:6379" | |
| restart: on-failure | |
| api: | |
| build: | |
| context: ./api | |
| ports: | |
| - "8000:8000" | |
| depends_on: | |
| postgres: | |
| condition: service_healthy | |
| redis: | |
| condition: service_started | |
| env_file: | |
| - ./api/.env | |
| web: | |
| build: | |
| context: ./web | |
| ports: | |
| - "3000:3000" | |
| depends_on: | |
| api: | |
| condition: service_started | |
| volumes: | |
| redis: | |
| postgres: | |