TelegramApiServer/docker-compose.yml

37 lines
865 B
YAML
Raw Normal View History

2022-04-18 00:32:29 +02:00
version: '2.4'
2020-03-09 00:42:17 +01:00
services:
telegram-api-server:
2020-03-11 00:20:14 +01:00
image: xtrime/telegram-api-server:latest
2022-04-18 00:32:29 +02:00
build:
context: .
dockerfile: Dockerfile
2020-03-09 00:42:17 +01:00
container_name: telegram-api-server
restart: unless-stopped
ports:
- "127.0.0.1:9503:9503"
2020-03-09 22:38:56 +01:00
volumes:
2020-03-11 00:20:14 +01:00
- ./:/app-host-link
working_dir: /app-host-link
2020-06-07 22:56:42 +02:00
depends_on:
- mysql
environment:
WAIT_HOSTS: mysql:3306
2020-03-09 00:42:17 +01:00
logging:
driver: "json-file"
options:
2020-03-11 00:20:14 +01:00
max-size: "1024k"
2020-06-07 22:56:42 +02:00
max-file: "2"
mysql:
2022-04-18 00:32:29 +02:00
image: mariadb:10.7
2020-06-07 22:56:42 +02:00
container_name: telegram-api-server-mysql
restart: unless-stopped
ports:
- "127.0.0.1:9507:3306"
volumes:
- ./.mysql:/var/lib/mysql
environment:
2020-06-08 00:42:49 +02:00
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
2021-10-06 00:32:52 +02:00
command: ["mysqld", "--innodb-buffer-pool-size=16M"]
2020-06-08 00:42:49 +02:00
networks:
default:
name: telegram-api-server