forked from jarvis2f/telegram-files
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (75 loc) · 2.44 KB
/
docker-compose.yaml
File metadata and controls
76 lines (75 loc) · 2.44 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
telegram-files:
container_name: telegram-files
image: ghcr.io/jarvis2f/telegram-files:latest
restart: always
# Uncomment the following lines to enable health check for the service.
# depends_on:
# telegram-files-postgres:
# condition: service_healthy
# telegram-files-mysql:
# condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1/api/health" ]
interval: 10s
retries: 3
timeout: 10s
start_period: 10s
environment:
# PUID and PGID are the user id and group id of the user who owns the files in the mounted volume.
#PUID: 1000
#PGID: 1000
#NGINX_PORT: 80
APP_ENV: "prod"
APP_ROOT: "/app/data"
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
# Uncomment the following lines to enable database connection, you can see .env.example for more details.
#DB_TYPE: ${DB_TYPE}
#DB_HOST: ${DB_HOST}
#DB_PORT: ${DB_PORT}
#DB_USER: ${DB_USER}
#DB_PASSWORD: ${DB_PASSWORD}
#DB_NAME: ${DB_NAME}
ports:
- "6543:80"
volumes:
- ./data:/app/data
# - ./other-files-for-transfer:/app/other-files-for-transfer
# Uncomment the following lines to enable database services.
# telegram-files-postgres:
# container_name: telegram-files-postgres
# image: postgres:15-alpine
# restart: always
# environment:
# PGUSER: ${DB_USER:-postgres}
# POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
# POSTGRES_DB: ${DB_NAME:-telegram-files}
# PGDATA: /var/lib/postgresql/data/pgdata
# volumes:
# - ./data/db/data:/var/lib/postgresql/data
# healthcheck:
# test: [ 'CMD', 'pg_isready' ]
# interval: 1s
# timeout: 3s
# retries: 30
#
# telegram-files-mysql:
# container_name: telegram-files-mysql
# image: mysql:8
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-password}
# MYSQL_DATABASE: ${DB_NAME:-telegram-files}
# MYSQL_USER: ${DB_USER:-mysql}
# MYSQL_PASSWORD: ${DB_PASSWORD:-password}
# command:
# --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
# volumes:
# - ./data/db/data:/var/lib/mysql
# healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$MYSQL_ROOT_PASSWORD" ]
# interval: 10s
# timeout: 5s
# retries: 5
# start_period: 30s