version: "2" services: bot: restart: always image: openjdk:8-jre-stretch volumes: - ./data/bot:/bot working_dir: /bot entrypoint: java -jar Bot.jar environment: - BOT_TOKEN=soandso - REDIS_HOST=redis depends_on: - redis redis: restart: always image: redis entrypoint: redis-server --appendonly yes volumes: - ./data/redis:/data