From d81dba727bdcba0de71315b177e108406a59d5b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Sat, 7 Jan 2023 18:09:10 +0100 Subject: [PATCH] Add docker-compose.yml --- Dockerfile | 2 +- docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index 340d589..6fb1053 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10-slim-bullseye -ENV VERSION_NUMBER 0.1.0-48-gdb5de81 +ENV VERSION_NUMBER 0.1.0-49-gf550978 ENV PROD 1 RUN useradd --create-home --uid 1000 timetracker diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4f21b18 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +--- +version: "2.1" +services: + timetracker: + image: registry.kucharczyk.xyz/timetracker + build: Dockerfile + container_name: timetracker + environment: + - TZ=Europe/Prague + - CSRF_TRUSTED_ORIGINS="https://tracker.kucharczyk.xyz" + user: "1000" + # volumes: + # - "db:/home/timetracker/app/src/web/db.sqlite3" + ports: + - "8000:8000" + restart: unless-stopped