Spaces:
Sleeping
Sleeping
Download docker-compose.yml from pvanand/template_streamlit_docker: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/pvanand/template_streamlit_docker/resolve/main/docker-compose.yml
- Command line
-
hf download hf://spaces/pvanand/template_streamlit_docker/docker-compose.yml
-
curl -L -o docker-compose.yml https://huggingface.co/spaces/pvanand/template_streamlit_docker/resolve/main/docker-compose.yml
628 Bytes
| version: '3.9' | |
| services: | |
| app1: | |
| build: | |
| context: ./app1 | |
| dockerfile: Dockerfile | |
| container_name: simple-http-server | |
| ports: | |
| - "8000:8000" | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:8000"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 10s | |
| app2: | |
| build: | |
| context: ./app2 | |
| dockerfile: Dockerfile | |
| container_name: simple-python-script | |
| healthcheck: | |
| test: ["CMD", "python", "-c", "import os; exit(0 if os.path.exists('/tmp/healthy') else 1)"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 5s |