-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (49 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (49 loc) · 1.39 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
44
45
46
47
48
49
50
51
52
53
54
55
56
version: "3.8"
services:
postgres:
image: pgvector/pgvector:pg17
container_name: py-manager-postgres
restart: unless-stopped
shm_size: 128mb
security_opt:
- seccomp=unconfined
environment:
POSTGRES_USER: ${PG_ADMIN_USER:-postgres}
POSTGRES_PASSWORD: ${PG_ADMIN_PASSWORD}
POSTGRES_DB: postgres
TZ: Asia/Almaty
volumes:
- /root/volumes/py-pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${PG_ADMIN_USER:-postgres}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
script-bot:
image: ghcr.io/mrmigles/py-manager:latest
container_name: script-bot
restart: unless-stopped
pids_limit: 512
security_opt:
- seccomp=unconfined
depends_on:
postgres:
condition: service_healthy
environment:
# required
BOT_TOKEN: ${BOT_TOKEN}
OWNER_ID: ${OWNER_ID}
DATA_DIR: /data
TZ: Asia/Almaty
# Postgres admin credentials (used by the bot to provision app databases)
PG_ADMIN_HOST: postgres
PG_ADMIN_PORT: 5432
PG_ADMIN_USER: ${PG_ADMIN_USER:-postgres}
PG_ADMIN_PASSWORD: ${PG_ADMIN_PASSWORD}
PG_ADMIN_DB: postgres
# Host/port injected into app subprocesses as PG_HOST / PG_PORT
PG_APP_HOST: postgres
PG_APP_PORT: 5432
volumes:
- /root/volumes/py-manager:/data