49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
version: "2.4"
|
|
|
|
services:
|
|
octoprint_server_{{NAME}}:
|
|
container_name: octoprint-server-{{NAME}}
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- 10.8.0.1:{{PORT}}:80
|
|
extra_hosts:
|
|
- "ovpn_gateway:10.8.0.1"
|
|
volumes:
|
|
- octoprint-server-{{NAME}}:/octoprint
|
|
bambu-go2rtc_{{NAME}}:
|
|
container_name: bambu-go2rtc-{{NAME}}
|
|
image: "docker.io/alexxit/go2rtc"
|
|
restart: "unless-stopped"
|
|
# These are the configuration options if a
|
|
# traefik setup is in place.
|
|
#labels:
|
|
# - "traefik.enable=true"
|
|
# - "traefik.http.routers.bambu-go2rtc.rule=Host(`bambu-webcam.example.com`)"
|
|
# - "traefik.http.routers.bambu-go2rtc.entrypoints=websecure"
|
|
# - "traefik.http.routers.bambu-go2rtc.tls=true"
|
|
# - "traefik.http.services.bambu-go2rtc.loadbalancer.server.port=1984"
|
|
# # This is enabling automatic LE certificate generation
|
|
# - "traefik.http.routers.bambu-go2rtc.tls.certresolver=leresolver"
|
|
# - "traefik.http.routers.bambu-go2rtc.tls.domains[0].main=bambu-webcam.example.com"
|
|
# # To enable basic auth uncomment and generate approprioate password using htpasswd
|
|
# #- "traefik.http.routers.bambu-go2rtc.middlewares=auth-$COMPOSE_PROJECT_NAME"
|
|
# #- "traefik.http.middlewares.auth-bambu-go2rtc.basicauth.users=bambu:$$HTPASSWD_FORMAT_PASSWORD"
|
|
ports:
|
|
- 10.8.0.1:{{PORT_MJPEG}}:1984
|
|
environment:
|
|
# Remember these values are defaults that can
|
|
# be overriden by a .env file. Putting sensitive
|
|
# data in a docker-compose.yml is less secure.
|
|
# See env-example for the exact format.
|
|
PRINTER_ADDRESS: "{{BAMBU_IP}}"
|
|
PRINTER_ACCESS_CODE: "{{BAMBU_CODE}}"
|
|
volumes:
|
|
- "/home/octoprint/bambu-go2rtc/go2rtc.yaml:/config/go2rtc.yaml"
|
|
- "/home/octoprint/bambu-go2rtc/camera-stream.py:/config/camera-stream.py"
|
|
|
|
volumes:
|
|
octoprint-server-{{NAME}}:
|