NicheBean commited on
Commit
ca278e2
·
verified ·
1 Parent(s): c11f5d3

Update docker-compose.yaml

Browse files
Files changed (1) hide show
  1. 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 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
 
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: