diff --git a/Dockerfile b/Dockerfile index f80545a..dd019c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,13 @@ FROM python:3.10.16 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 +# install ffmpeg +RUN apt-get update && apt-get install -y ffmpeg + # set work directory WORKDIR /app COPY pyproject.toml /app/ -COPY config.yml /app/ COPY src/ /app/src RUN pip install --upgrade pip diff --git a/config.yml b/config.yml index c858249..58fb399 100644 --- a/config.yml +++ b/config.yml @@ -12,4 +12,4 @@ audio: model: type: base - device: cuda \ No newline at end of file + device: cpu \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..52c5ba6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +services: + annescribe: + build: + context: . + dockerfile: Dockerfile + labels: + - "traefik.enable=true" + - "traefik.http.routers.annescribe.rule=Host(`annescribe.dieblanks.net`)" + - "traefik.http.routers.annescribe.tls=true" + - "traefik.http.routers.annescribe.tls.certresolver=lets-encrypt" + - "traefik.http.services.annescribe.loadbalancer.server.port=8501" + volumes: + - ./auth.yml:/app/auth.yml + - ./config.yml:/app/config.yml + restart: unless-stopped + ports: + - 8501:8501 + networks: + - web + +networks: + web: + driver: bridge + external: true \ No newline at end of file