-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dockerhub.yml
47 lines (43 loc) · 1.07 KB
/
docker-compose-dockerhub.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
42
43
44
45
46
version: '3.8'
services:
getcam:
platform: linux/amd64
image: kiddten/getcam:latest
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./:/app # Adjust the volume path based on your project structure
postgres:
platform: linux/amd64
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: getcam_db
ports:
- "2612:5432"
restart: unless-stopped
volumes:
- local_postgres_data_getcam:/var/lib/postgresql/data/
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 3s
timeout: 3s
retries: 2
telegram-bot-api:
platform: linux/amd64
image: aiogram/telegram-bot-api:latest
environment:
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
TELEGRAM_LOCAL: 1
volumes:
- telegram-bot-api-data:/var/lib/telegram-bot-api
ports:
- "8081:8081"
volumes:
local_postgres_data_getcam:
telegram-bot-api-data: