-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (37 loc) · 993 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (37 loc) · 993 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
31
32
33
34
35
36
37
services:
kt-app:
build: .
#image: jakefrosty/korotagger:1.5
container_name: korotagger-app
mem_limit: 100m
environment:
- yt_api_key=your-yt-api-key
- holodex_api_key=your-holodex-api-key
- POSTGRES_HOST=kt-db
- POSTGRES_PORT=5432
- POSTGRES_USER=username
- POSTGRES_PASSWORD="averysecurepassword"
- POSTGRES_DB=your-database-name
- 'bots=[{ "name": "main", "token": "your-bot-token-here"}]'
depends_on:
- kt-db
volumes:
- kt-app:/app
kt-db:
image: postgres:16.3-alpine3.20
restart: unless-stopped
container_name: korotagger-db
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD="averysecurepassword"
- POSTGRES_DATABASE=your-database-name
volumes:
- kt-db:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
volumes:
kt-app:
kt-db: