2024-04-16 19:17:27 +02:00
|
|
|
services:
|
|
|
|
base-api:
|
|
|
|
image: xtrime/telegram-api-server:latest
|
2024-04-19 01:14:22 +02:00
|
|
|
init: true
|
2024-04-16 19:17:27 +02:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./:/app-host-link
|
|
|
|
working_dir: /app-host-link
|
|
|
|
depends_on:
|
|
|
|
- mysql
|
|
|
|
environment:
|
|
|
|
WAIT_HOSTS: mysql:3306
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "1024k"
|
|
|
|
max-file: "2"
|
|
|
|
healthcheck:
|
2024-05-23 18:32:21 +02:00
|
|
|
test: timeout 15 curl -f http://localhost:9503/system/healthcheck || sh -c 'kill -INT -1 && (sleep 5; kill -s 9 -1)'
|
2024-04-16 19:17:27 +02:00
|
|
|
interval: 60s
|
2024-04-19 01:14:22 +02:00
|
|
|
timeout: 30s
|
|
|
|
retries: 1
|
2024-04-16 19:17:27 +02:00
|
|
|
base-mysql:
|
|
|
|
image: mariadb:11.1
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- ./.mysql:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
|
|
|
|
MARIADB_AUTO_UPGRADE: 'yes'
|
|
|
|
command:
|
|
|
|
- --skip-grant-tables
|
|
|
|
- --innodb-buffer-pool-size=128M
|
|
|
|
- --wait_timeout=65
|