From 206713a8486251ab08b44dcc7b409acb46dc3b1e Mon Sep 17 00:00:00 2001 From: Jonas Bengtsson Date: Wed, 19 Aug 2026 21:10:36 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- docker-compose.yml => docker-compose.yaml | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) rename docker-compose.yml => docker-compose.yaml (69%) diff --git a/Dockerfile b/Dockerfile index 7127165..e2451ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ - CONFIG_PATH=/app/config.json + CONFIG_PATH=/app/config/config.json WORKDIR /app @@ -10,7 +10,7 @@ COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app ./app -COPY config.json ./config.json +COPY config.json ./config/config.json EXPOSE 8000 diff --git a/docker-compose.yml b/docker-compose.yaml similarity index 69% rename from docker-compose.yml rename to docker-compose.yaml index ab8014d..3eeb607 100644 --- a/docker-compose.yml +++ b/docker-compose.yaml @@ -3,9 +3,12 @@ services: build: . container_name: bohemma-swish ports: - - "8000:8000" + - "${APP_PORT:-8080}:8000" environment: CONFIG_PATH: /app/config.json volumes: - - ./config.json:/app/config.json:ro + - config:/app/config restart: unless-stopped + +volumes: + config: \ No newline at end of file