NicheBean commited on
Commit
89b741e
·
verified ·
1 Parent(s): 7ebb610

Update docker-compose.yaml

Browse files
Files changed (1) hide show
  1. docker-compose.yaml +3 -7
docker-compose.yaml CHANGED
@@ -1,19 +1,15 @@
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:
 
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: