version: "3.8" services: webtop: build: . # This will use the Dockerfile to build the image ports: - "8080:8080" # Expose Webtop on port 8080 environment: - WEBTOP_USERNAME=admin - WEBTOP_PASSWORD=secretpassword # Set username and password for Webtop (authentication) restart: always volumes: - webtop-data:/home/user/webtop # Optional: persistent data for Webtop volumes: webtop-data: