forked from es3n1n/nowplaying
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
52 lines (52 loc) · 1.38 KB
/
compose.dev.yml
File metadata and controls
52 lines (52 loc) · 1.38 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
services:
postgres:
image: postgres:14-alpine
restart: always
command: postgres -c listen_addresses='*'
container_name: nowplaying-db
volumes:
- ./db_data/postgres:/var/lib/postgresql/data
env_file:
- .env
ports:
- "5432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
nowplaying-grpc:
image: nowplaying-grpc:latest
restart: unless-stopped
container_name: nowplaying-grpc
build: ynison_proxy
ports:
- "50051:50051"
telegram-bot-api:
profiles: ["selfhosted-telegram-api"]
image: ghcr.io/es3n1n/telegram-bot-api:latest
restart: unless-stopped
container_name: nowplaying-bot-api
env_file:
- .env
ports:
- "8081:8081"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- tg_data:/var/lib/telegram-bot-api
bot-api-janitor:
profiles: ["selfhosted-telegram-api"]
image: bot-api-janitor:latest
restart: unless-stopped
container_name: nowplaying-bot-api-janitor
build: botapi_janitor
volumes:
- tg_data:/var/lib/telegram-bot-api
environment:
- TZ=$(cat /etc/timezone)
volumes:
# Not a directory to avoid errors due to : in filenames on windows
tg_data:
name: "nowplaying_tg_data"