-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 892 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 892 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
41
version: "3"
services:
postgres:
container_name: "alonebot_postgres"
image: postgres:15-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=alonebot
- POSTGRES_PASSWORD=alonebot
- POSTGRES_DATABASE=alonebot
volumes:
- pg_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U alonebot"]
interval: 2s
timeout: 1s
retries: 5
bot:
container_name: "alonebot"
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/main
depends_on:
- postgres
env_file:
- .env
environment:
JISHAKU_HIDE: "True"
JISHAKU_RETAIN: "True"
JISHAKU_NO_UNDERSCORE: "True"
JISHAKU_FORCE_PAGINATOR: "True"
JISHAKU_NO_DM_TRACEBACK: "True"
volumes:
pg_data:
.: