36 lines
741 B
YAML
36 lines
741 B
YAML
version: "2.2"
|
|
|
|
networks:
|
|
p2pool-observer-bot:
|
|
external: false
|
|
|
|
volumes:
|
|
data:
|
|
external: false
|
|
services:
|
|
bot:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./Dockerfile
|
|
args:
|
|
- GOPROXY=${GOPROXY}
|
|
restart: always
|
|
environment:
|
|
- BOT_PASSWORD=${BOT_PASSWORD}
|
|
- PLEROMA_COOKIE=${PLEROMA_COOKIE}
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
volumes:
|
|
- data:/data:rw
|
|
networks:
|
|
- p2pool-observer-bot
|
|
command: >-
|
|
/usr/bin/bot
|
|
-db /data/subscriptions.db
|
|
-irc-host "${IRC_HOST}"
|
|
-irc-port "${IRC_PORT}"
|
|
-bot-nick "${BOT_NICK}"
|
|
-bot-user "${BOT_USER}"
|
|
-pleroma-host "${PLEROMA_HOST}"
|
|
-channels "${CHANNELS}"
|
|
${EXTRA_ARGS} |