Spaces:
Sleeping
Sleeping
File size: 1,949 Bytes
74c716c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
version: '3'
services:
# --- Service used for local development
local-dev:
# Building the local image
build:
context: ../
dockerfile: ./Dockerfile
# Running the local image
image: "cicero-synthesizer-local-dev"
container_name: "cicero-synthesizer-local-dev"
environment:
DOCKER_BUILDKIT_VALUE: ${DOCKER_BUILDKIT_VALUE}
HUGGING_FACE_HUB_TOKEN: ${HUGGING_FACE_HUB_TOKEN}
volumes:
- ${HOME}/.ssh:/root/.ssh
- /var/run/docker.sock:/var/run/docker.sock
- ..:/opt/program
working_dir: /opt/program
command: [ "/bin/sleep", "365d" ]
#
# --- Service for running the API locally
api:
# Building the local image
build:
context: ../
dockerfile: ./Dockerfile
# Running the local image
image: "cicero-synthesizer-api"
container_name: "cicero-synthesizer-api"
environment:
HUGGING_FACE_HUB_TOKEN: ${HUGGING_FACE_HUB_TOKEN}
HUGGING_FACE_USERNAME: ${HUGGING_FACE_USERNAME}
volumes:
- ..:/opt/ml
ports:
- ${INPUT_APP_PORT:-8501}:${OUTPUT_APP_PORT:-8501}
working_dir: /opt/ml
command:
[
"uvicorn",
"src.api.index:app",
"--host",
"0.0.0.0",
"--port",
"8501",
"--reload",
"--reload-dir",
"/opt/ml"
]
#
# --- Service for running the Gradio application locally
app:
# Building the local image
build:
context: ../
dockerfile: ./Dockerfile
# Running the local image
image: "cicero-synthesizer-app"
container_name: "cicero-synthesizer-app"
environment:
APP_SERVER_PORT: ${APP_SERVER_PORT}
HUGGING_FACE_HUB_TOKEN: ${HUGGING_FACE_HUB_TOKEN}
HUGGING_FACE_USERNAME: ${HUGGING_FACE_USERNAME}
volumes:
- ..:/opt/ml
ports:
- ${APP_SERVER_PORT:-7860}:${APP_SERVER_PORT:-7860}
working_dir: /opt/ml
command: [ "python", "src/app_service/app.py" ]
|