-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-debug.yml
41 lines (41 loc) · 966 Bytes
/
docker-compose-debug.yml
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.9"
services:
db_nafanya:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5433:5432'
volumes:
- db_nafanya:/var/lib/postgresql/data
bot:
container_name: nafanya-bot
build:
context: ./
dockerfile: Dockerfile-local
ports:
- "8000:8000"
- "40000:40000"
security_opt:
- "seccomp:unconfined"
cap_add:
- SYS_PTRACE
command: ./dlv --listen=:40000 --headless=true --api-version=2 --accept-multiclient exec /nafanya-bot
depends_on:
- db_nafanya
environment:
DB_HOST: db_nafanya
DB_PORT: 5433
DB_USER: postgres
DB_PASS: postgres
DB_NAME: postgres
AI_TOKEN: ${AI_TOKEN}
BOT_TOKEN: ${BOT_TOKEN}
SENTRY_DSN: ${SENTRY_DSN}
GEMINI_API_KEY: ${GEMINI_API_KEY}
DEBUG_MODE: true
volumes:
db_nafanya:
driver: local