-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (29 loc) · 818 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (29 loc) · 818 Bytes
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
29
30
version: '3.8'
services:
absentra:
build:
context: .
dockerfile: Dockerfile
container_name: absentra
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}
- SLACK_SIGNING_SECRET=${SLACK_SIGNING_SECRET}
- SLACK_APP_TOKEN=${SLACK_APP_TOKEN}
- DATABASE_URL=file:/app/data/pto.db
- PORT=3000
- DEFAULT_TIMEZONE=${DEFAULT_TIMEZONE:-UTC}
- ADMIN_SLACK_ID=${ADMIN_SLACK_ID:-}
volumes:
# Persist SQLite database to a local folder
- ./data:/app/data
- ./logs:/app/logs
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s