Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
REPOSITORY_LOCATION=
CONFIG_LOCATION=
TIMEZONE=
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ Clone this repository
Enter the repository and run `npm install`. This will install all the required dependencies.

## Step 3
Edit the `docker-compose.yml` file.
Make a copy from `.env.example` file and rename it `.env`.

Replace `<your-repository-location>` with the full path to your repository.
Add the full path of your repository on the `REPOSITORY_LOCATION` variable.

Replace `<your-config-location>` with the directory in which you would like to store your configuration.
Add the directory in which you would like to store your configuration on the `CONFIG_LOCATION` variable.

Replace `<your-timezone>` with your timezone.
Add your timezone on the `TIMEZONE` variable

## Step 4
Run the command `docker build -t librarian .` and then `docker-compose up -d`
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:
command: >
node index.js
volumes:
- <your-repository-location>:/usr/src/bot
- <your-config-location>:/.store
- ${REPOSITORY_LOCATION}:/usr/src/bot
- ${CONFIG_LOCATION}:/.store
environment:
- TZ=<your-timezone>
- TZ=${TIMEZONE}
restart: unless-stopped