Solar-Helix-Independent-Transport / allianceauth-discordbot

allianceauth-discordbot
MIT License
6 stars 19 forks source link

add v4 docker steps #84

Open soratidus999 opened 9 months ago

soratidus999 commented 9 months ago

update readme steps to have docker config as alternative to supervisor for aav4

Update base image to have bot_conf.py mapped
x-allianceauth-base:
  # image: ${AA_DOCKER_TAG?err}
  &allianceauth-base
  build:
    context: .
    dockerfile: custom.dockerfile
    args:
      AA_DOCKER_TAG: ${AA_DOCKER_TAG?err}
  restart: always
  env_file:
    - ./.env
  volumes:
...
    - ./conf/bot_conf.py:/home/allianceauth/myauth/bot_conf.py
...

  allianceauth_discordbot:
    container_name: allianceauth_discordbot
    <<: [ *allianceauth-base ]
    restart: on-failure:1
    entrypoint: [ "python", "/home/allianceauth/myauth/bot_conf.py" ]