mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
38 lines
897 B
YAML
38 lines
897 B
YAML
version: '2.4'
|
|
services:
|
|
telegram-api-server:
|
|
image: xtrime/telegram-api-server:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: telegram-api-server
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:9503:9503"
|
|
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"
|
|
mysql:
|
|
image: mariadb:10.8
|
|
container_name: telegram-api-server-mysql
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:9507:3306"
|
|
volumes:
|
|
- ./.mysql:/var/lib/mysql
|
|
environment:
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
|
|
MARIADB_AUTO_UPGRADE: "1"
|
|
command: ["mysqld", "--innodb-buffer-pool-size=16M"]
|
|
networks:
|
|
default:
|
|
name: telegram-api-server |