Spaces:
Runtime error
Runtime error
Create docker-compose.yaml
Browse files- docker-compose.yaml +21 -0
docker-compose.yaml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: "3.8"
|
| 2 |
+
services:
|
| 3 |
+
webtop:
|
| 4 |
+
image: ubuntu:latest # Use Ubuntu as the base image
|
| 5 |
+
build:
|
| 6 |
+
context: .
|
| 7 |
+
dockerfile: Dockerfile # The Dockerfile from which we will build the image
|
| 8 |
+
ports:
|
| 9 |
+
- "8080:8080" # Expose port 8080 for the Webtop interface
|
| 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 "curl -fsSL https://webtop.dev/install.sh | sh && \
|
| 18 |
+
webtop start --auth /etc/apache2/.htpasswd"
|
| 19 |
+
|
| 20 |
+
volumes:
|
| 21 |
+
webtop-data: # Persistent data for Webtop
|