aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 24eeafe04b1e8a030e35fa416a92761b283c6632 (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_DEBUG
      - SEASONALBOT_GUILD
      - SEASONALBOT_ADMIN_ROLE_ID
      - CHANNEL_DEVLOG
      - 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"