-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (26 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
28 lines (26 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: typst-bot
services:
bot:
# This service is built using the Dockerfile in the current directory.
build: .
# This service is always restarted if it ever shuts down (unless stopped manually).
restart: always
# The `DISCORD_TOKEN` variable is set within the container to whatever value `DISCORD_TOKEN`
# has when Compose is run. It is not saved in the image. Compose will automatically grab its
# value from `.env` or the host OS. `?:error` makes it mandatory.
environment:
DISCORD_TOKEN_FILE: /run/secrets/discord_token
secrets:
- discord_token
# The `/bot/sqlite` and `/bot/cache` directories are mapped to volumes.
volumes:
- sqlite:/bot/sqlite
- cache:/bot/cache
# SQLite database for tags and package cache are stored in named volumes managed by Docker. As long
# as the volumes are kept in between container rebuilds, they won't need to be recreated.
volumes:
sqlite:
cache:
secrets:
discord_token:
file: discord_token.txt