Spaces:
Runtime error
Runtime error
Update docker-compose.yaml
Browse files- docker-compose.yaml +10 -12
docker-compose.yaml
CHANGED
|
@@ -1,21 +1,19 @@
|
|
| 1 |
version: "3.8"
|
| 2 |
services:
|
| 3 |
webtop:
|
| 4 |
-
image: ubuntu:latest # Use
|
| 5 |
-
build:
|
| 6 |
-
context: .
|
| 7 |
-
dockerfile: Dockerfile # The Dockerfile from which we will build the image
|
| 8 |
ports:
|
| 9 |
-
- "8080:8080" # Expose
|
| 10 |
-
volumes:
|
| 11 |
-
- webtop-data:/home/user/webtop # Persistent storage
|
| 12 |
environment:
|
| 13 |
- WEBTOP_USERNAME=admin
|
| 14 |
-
- WEBTOP_PASSWORD=secretpassword
|
| 15 |
-
restart: always
|
| 16 |
command: |
|
| 17 |
-
/bin/bash -c "
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
volumes:
|
| 21 |
-
webtop-data:
|
|
|
|
| 1 |
version: "3.8"
|
| 2 |
services:
|
| 3 |
webtop:
|
| 4 |
+
image: ubuntu:latest # Use the pre-built Ubuntu image
|
|
|
|
|
|
|
|
|
|
| 5 |
ports:
|
| 6 |
+
- "8080:8080" # Expose Webtop on port 8080
|
|
|
|
|
|
|
| 7 |
environment:
|
| 8 |
- WEBTOP_USERNAME=admin
|
| 9 |
+
- WEBTOP_PASSWORD=secretpassword # Set the username and password for authentication
|
|
|
|
| 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: Use a volume for persistent storage
|
| 17 |
|
| 18 |
volumes:
|
| 19 |
+
webtop-data:
|