You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
792 B

version: '3.8'
services:
iot-callback:
build: ./iot-callback/
container_name: iot_callback_server
command: python3 app.py
volumes:
- ./iot-callback/:/app
networks:
- web
ports:
- 5001:5000
labels:
- "traefik.enable=true"
- "traefik.http.routers.iot-callback.rule=Host(`iot.keydev.me`)"
- "traefik.http.routers.iot-callback.entrypoints=web"
- "traefik.http.routers.iot-callback.middlewares=redirect@file"
- "traefik.http.routers.iot-callback-secured.rule=Host(`iot.keydev.me`)"
- "traefik.http.routers.iot-callback-secured.entrypoints=web-secured"
- "traefik.http.routers.iot-callback-secured.tls.certresolver=mytlschallenge"
networks:
database_network:
external: true
web:
external: true