Skip to content

Commit

Permalink
Add docker-compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
rom4nik committed Sep 27, 2021
1 parent 1690b4b commit c9f459f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# pb-rozklad

## Run:

## Docker:
Build: `docker build . --tag rom4nik/pb-rozklad`

Run: `docker run --rm --name pb-rozklad-test --volume "<ścieżka-do-danych>:/data" rom4nik/pb-rozklad`

Dockerfile defaults to running the script in a cron-like manner, see docker-compose.yml for an example deployment.

## Testy:
- 404 (brak rozkładu)
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "2"
services:
pb-rozklad:
image: rom4nik/pb-rozklad
environment:
- SLEEPTIME=5m
volumes:
- ./data/pb-rozklad:/data

0 comments on commit c9f459f

Please sign in to comment.