Add docker-compose.yml

This commit is contained in:
Lukáš Kucharczyk 2023-01-07 18:09:10 +01:00
parent f550978e4a
commit d81dba727b
2 changed files with 17 additions and 1 deletions

View File

@ -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

16
docker-compose.yml Normal file
View File

@ -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