aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 13cda8581a8e325a0016379f711ed67c48b1ac15 (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
28
29
x-restart-policy: &restart_policy
  restart: unless-stopped

services:
  sir-lancebot:
    << : *restart_policy
    build:
      context: .
      dockerfile: Dockerfile
    container_name: sir-lancebot
    init: true
    tty: true

    depends_on:
      - redis

    environment:
      - REDIS_HOST=redis
    env_file:
      - .env

    volumes:
      - .:/bot

  redis:
    << : *restart_policy
    image: redis:latest
    ports:
      - "127.0.0.1:6379:6379"