49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
version: "2.4"
|
|
|
|
services:
|
|
octoprint_server_a1_first:
|
|
container_name: octoprint-server-a1_first
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
ports:
|
|
- 10.8.0.1:50139:80
|
|
extra_hosts:
|
|
- "ovpn_gateway:10.8.0.1"
|
|
volumes:
|
|
- octoprint-server-a1_first:/octoprint
|
|
bambu-go2rtc_a1_first:
|
|
container_name: bambu-go2rtc-a1_first
|
|
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:50140: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: "192.168.188.32"
|
|
PRINTER_ACCESS_CODE: "24008302"
|
|
volumes:
|
|
- "/home/octoprint/bambu-go2rtc/go2rtc.yaml:/config/go2rtc.yaml"
|
|
- "/home/octoprint/bambu-go2rtc/camera-stream.py:/config/camera-stream.py"
|
|
|
|
volumes:
|
|
octoprint-server-a1_first:
|