demos.dockercompose.35services/docker-compose.yaml
2024-07-11 09:18:08 +02:00

44 lines
1.3 KiB
YAML

version: "3.8"
services:
#dnsrobocert:
# image: adferrand/dnsrobocert
# pull_policy: always
# restart: always
# volumes:
# - "./config/cert:/etc/letsencrypt"
# - "./config/dnsrobocert:/etc/dnsrobocert"
bffh:
build:
# changes in the file will require `docker compose down` `docker compose build`
context: .
dockerfile: bffh-v0.4.2-with-python3-dockerfile-v2
pull_policy: always
restart: always
ports:
- "59661:59661"
entrypoint: ["sh", "-c", "bffhd -c /etc/bffh/bffh.dhall --load=/etc/bffh/users.toml; bffhd -c /etc/bffh/bffh.dhall"]
environment:
- "BFFH_LOG=debug"
volumes:
# generate a sample config.toml by running "docker run registry.gitlab.com/fabinfra/fabaccess/bffh:dev-latest --print-default > examples/config.toml" from the project root. You may have to delete the ipv6 listen section.
- "./config/bffh:/etc/bffh"
- "./adapters:/usr/local/lib/bffh/adapters"
- "./config/cert:/etc/letsencrypt"
- "./data:/var/lib/bffh"
- "./tmp:/tmp/"
links:
- mqtt
mqtt:
image: eclipse-mosquitto:1.6.15
restart: always
ports:
- "1883:1883"
volumes:
- "./config/mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf"
volumes:
data: