mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
services:
|
|
pocketbase:
|
|
container_name: pocketbase
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.pocketbase
|
|
ports:
|
|
- 8090:8090
|
|
volumes:
|
|
- ./pb/data:/pb/pb_data
|
|
restart: no
|
|
environment:
|
|
# These are only needed at first start. These are the values used to login to the admin panel.
|
|
# If left empty the email will be set to test@example.com and the password to 1234567890
|
|
- EMAIL=
|
|
- PASSWORD=
|
|
bot:
|
|
depends_on:
|
|
pocketbase:
|
|
condition: service_started
|
|
container_name: dogbot
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dogbot
|
|
restart: no
|
|
develop:
|
|
watch:
|
|
- action: rebuild
|
|
path: ./src
|
|
environment:
|
|
- BOT_NAME=$BOT_NAME
|
|
- CHANNEL=$CHANNEL
|
|
# The following env variables can be removed once the bot has sucessfully run once
|
|
- CLIENT_ID=$CLIENT_ID
|
|
- CLIENT_SECRET=$CLIENT_SECRET
|
|
- OAUTH_CODE=$OAUTH_CODE
|
|
- REDIRECT_URI=$REDIRECT_URI # This should be exactly the same as you put in the twitch dev console
|
|
# If the broadcaster is different from the bot user,
|
|
# the broadcaster will need to authorize the bot to perform certain actions
|
|
- DIFFERENT_BROADCASTER=$DIFFERENT_BROADCASTER
|
|
- BROADCASTER_OAUTH_CODE=$BROADCASTER_OAUTH_CODE
|