services:
  canaille:
    build: .
    # image: git.shenanigans.cc/globuzma/canaille:latest
    #
    # README : For a first start you need to install all the schemas or LDAP models
    # Uncomment the line below and do `docker compose up` once
    # After this you can comment it again and start your container
    #
    # command: canaille install

    restart: unless-stopped
    ports:
      - 5000:5000
    volumes:
      - ./database:/opt/canaille/database
      - ./config.toml:/opt/canaille/config.toml
    env:
      # For an example config file see : https://canaille.readthedocs.io/en/latest/references/configuration.html#example-file
      - CONFIG=/opt/canaille/config.toml