2 Commits
1.0.0 ... 1.0.1

Author SHA1 Message Date
00da4d2abc feat: add example usage of docker-compose.yml to README
All checks were successful
Build and publish Docker image / build-and-push (release) Successful in 9s
2025-11-13 04:06:04 +01:00
1bc4b0fb50 feat: forgot to define some runtime environment variables in Dockerfile 2025-11-13 04:01:26 +01:00
2 changed files with 21 additions and 0 deletions

View File

@@ -26,6 +26,11 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
# Copy built frontend into the expected location: /app/frontend/dist
COPY --from=frontend-build /app/frontend/dist ./frontend/dist
# runtime environment (DATA_DIR used at runtime; DATABASE_URL points to it)
ENV NODE_ENV=production
ENV DATA_DIR=/data
ENV DATABASE_URL="file:${DATA_DIR}/sqlite.db"
WORKDIR /app/backend
EXPOSE 3000

16
README.md Normal file
View File

@@ -0,0 +1,16 @@
Here is example usage of `docker-compose.yml`:
```yaml
service
tally-counter:
image: gitea.kanawave.net/sebastas/tally-counter:latest #this image
container_name: tally-counter
user: 2000:2000 #uid:gid
restart: unless-stopped
networks:
- proxy # traefik proxy network
volumes:
- ./tally-counter:/data # for persistant storage (db + uploads)
```
Quick and dirty setup!