Spaces:
Runtime error
Runtime error
Update docker-compose.yaml
Browse files- docker-compose.yaml +3 -7
docker-compose.yaml
CHANGED
|
@@ -1,19 +1,15 @@
|
|
| 1 |
version: "3.8"
|
| 2 |
services:
|
| 3 |
webtop:
|
| 4 |
-
|
| 5 |
ports:
|
| 6 |
- "8080:8080" # Expose Webtop on port 8080
|
| 7 |
environment:
|
| 8 |
- WEBTOP_USERNAME=admin
|
| 9 |
-
- WEBTOP_PASSWORD=secretpassword # Set
|
| 10 |
-
command: |
|
| 11 |
-
/bin/bash -c "apt-get update && apt-get install -y curl gnupg lsb-release ca-certificates sudo git && \
|
| 12 |
-
curl -fsSL https://webtop.dev/install.sh | sh && \
|
| 13 |
-
webtop start --auth /etc/apache2/.htpasswd" # Install Webtop and start it with authentication
|
| 14 |
restart: always
|
| 15 |
volumes:
|
| 16 |
-
- webtop-data:/home/user/webtop # Optional:
|
| 17 |
|
| 18 |
volumes:
|
| 19 |
webtop-data:
|
|
|
|
| 1 |
version: "3.8"
|
| 2 |
services:
|
| 3 |
webtop:
|
| 4 |
+
build: . # This will use the Dockerfile to build the image
|
| 5 |
ports:
|
| 6 |
- "8080:8080" # Expose Webtop on port 8080
|
| 7 |
environment:
|
| 8 |
- WEBTOP_USERNAME=admin
|
| 9 |
+
- WEBTOP_PASSWORD=secretpassword # Set username and password for Webtop (authentication)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
restart: always
|
| 11 |
volumes:
|
| 12 |
+
- webtop-data:/home/user/webtop # Optional: persistent data for Webtop
|
| 13 |
|
| 14 |
volumes:
|
| 15 |
webtop-data:
|