-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
23 lines (21 loc) · 717 Bytes
/
Copy pathcompose.yml
File metadata and controls
23 lines (21 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
volumes:
logs:
driver: local
services:
discordts-bot:
# TODO: Consider building image(s) in a workflow and uploading to GHCR or DockerHub
build:
context: .
image: discordts-bot:latest
container_name: discordts-bot
volumes:
- logs:/home/node/app/logs
- ./.env:/home/node/app/.env:ro
# TODO: allow file to not exist at container start and let container r/w
- type: bind
bind:
create_host_path: false # error out instead of creating directory and silently failing
source: ./config.json
target: /home/node/app/config.json
restart: unless-stopped
# TODO: Run MongoDB image instead of relying on externally hosted database