-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
43 lines (40 loc) · 1.01 KB
/
docker-compose.test.yml
File metadata and controls
43 lines (40 loc) · 1.01 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: cafeBot
services:
db:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: cafeBot
ports:
- "5432:5432"
volumes:
- cafeBot_db_data:/var/lib/postgresql/18/docker
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d cafeBot"]
interval: 5s
timeout: 5s
retries: 5
api:
image: git.beanbeanjuice.dev/beanbeanjuice/cafebot-api:dev-latest
ports:
- "5000:5000"
depends_on:
db:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:5000/api/v4/hello" ]
interval: 10s
timeout: 5s
retries: 20
start_period: 20s
volumes:
- ./packages/database/data/v3:/app/data/v3
environment:
DATABASE_URL: postgres://postgres:password@db:5432/cafeBot
KAWAII_API_TOKEN: anonymous
NODE_ENV: bot_testing
volumes:
cafeBot_db_data: