Update setup.sh

This commit is contained in:
Sthope 2021-04-04 21:30:35 +02:00 committed by GitHub
parent 112d52ac7f
commit b1d032fc76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,8 +57,7 @@ sh <(curl -sSL https://get.docker.com) &>/dev/null
# Install Portainer
msg "Installing Portainer..."
FOLDER_PORTAINER='/docker/portainer'
mkdir -p $FOLDER_PORTAINER
# docker volume create portainer_data >/dev/null
mkdir -p $(dirname $FOLDER_PORTAINER)
docker run -d \
-p 8000:8000 \
-p 9000:9000 \
@ -78,10 +77,10 @@ docker run -d \
--cleanup \
--label-enable &>/dev/null
# Instal VSCode
# Install VSCode
msg "Installing VSCode..."
FOLDER_VSCODE='/docker/vscode'
mkdir -p $FOLDER_VSCODE
mkdir -p $(dirname $FOLDER_VSCODE)
docker run -d \
--name=vscode \
-e TZ=Europe/Amsterdam \
@ -92,6 +91,20 @@ docker run -d \
--restart unless-stopped \
ghcr.io/linuxserver/code-server &>/dev/null
# Install BitWarden
msg "Installing BitWarden..."
FOLDER_BITWARDEN='/docker/bitwarden'
mkdir -p $(dirname $FOLDER_BITWARDEN)
docker run -d \
--name bitwarden \
--label com.centurylinklabs.watchtower.enable=false \
-v /docker/bitwarden:/data/ \
-v /etc/timezone:/etc/timezone:ro \
-v /etc/localtime:/etc/localtime:ro \
-p 80:80 -p 3012:3012 \
-e ADMIN_TOKEN=RootPassword \
bitwardenrs/server:latest &>/dev/null
# Customize container
msg "Customizing container..."
rm /etc/motd # Remove message of the day after login