forked from mattfbacon/typst-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
25 lines (23 loc) · 1000 Bytes
/
docker-compose.yml
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
---
name: typst-bot
version: "3.8"
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=${DISCORD_TOKEN?:error}
# 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: