-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 789 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (36 loc) · 789 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
38
39
40
version: '3.9'
services:
bot:
build: .
restart: unless-stopped
env_file: .env
volumes:
- db-data:/app/data
depends_on:
postgres:
condition: service_healthy
profiles: ['postgres']
bot-sqlite:
build: .
restart: unless-stopped
env_file: .env
volumes:
- ./offhunter.db:/app/offhunter.db
profiles: ['sqlite']
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: offhunter
POSTGRES_PASSWORD: offhunter
POSTGRES_DB: offhunter
volumes:
- db-data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U offhunter']
interval: 5s
timeout: 5s
retries: 5
profiles: ['postgres']
volumes:
db-data: