aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 0cc3ac4d00fe3d14834bdb1dac73b71c364f6598 (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
30
31
version: "3.7"
services:
  seasonalbot:
    build:
      context: .
      dockerfile: Dockerfile
    container_name: seasonalbot
    init: true

    restart: always
    depends_on:
      - redis

    environment:
      - SEASONALBOT_TOKEN=${SEASONALBOT_TOKEN}
      - SEASONALBOT_DEBUG=${SEASONALBOT_DEBUG}
      - SEASONALBOT_GUILD=${SEASONALBOT_GUILD}
      - SEASONALBOT_ADMIN_ROLE_ID=${SEASONALBOT_ADMIN_ROLE_ID}
      - CHANNEL_DEVLOG=${CHANNEL_DEVLOG}
      - CHANNEL_SEASONALBOT_COMMANDS=${CHANNEL_SEASONALBOT_COMMANDS}
      - REDIS_HOST=redis

    volumes:
      - /opt/pythondiscord/seasonalbot/log:/bot/bot/log
      - /opt/pythondiscord/seasonalbot/data:/bot/data
      - .:/bot

  redis:
    image: redis:latest
    ports:
      - "127.0.0.1:6379:6379"