aboutsummaryrefslogtreecommitdiffstats
path: root/dev/docker-compose.yaml
blob: e1dca5bb5eb31687432b8e3b232d73e0b15da666 (plain) (blame)
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
version: "3.9"

x-logging: &logging
  logging:
    driver: "json-file"
    options:
      max-file: "5"
      max-size: "10m"

x-restart-policy: &restart_policy
  restart: unless-stopped

services:
  botcore:
    <<: *logging
    <<: *restart_policy
    build:
      context: .
      dockerfile: Dockerfile
    container_name: botcore

    volumes:
      - ./logs:/bot/logs
      - .:/bot:ro

    env_file:
      - .env