Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00da4d2abc | |||
| 1bc4b0fb50 |
@@ -26,6 +26,11 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
|
|||||||
# Copy built frontend into the expected location: /app/frontend/dist
|
# Copy built frontend into the expected location: /app/frontend/dist
|
||||||
COPY --from=frontend-build /app/frontend/dist ./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
|
WORKDIR /app/backend
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|||||||
16
README.md
Normal file
16
README.md
Normal 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!
|
||||||
Reference in New Issue
Block a user