Skip to content

Instantly share code, notes, and snippets.

@inluxc
Created March 11, 2021 23:08
Show Gist options
  • Save inluxc/44851336c2674bf133f1f351f4945ab0 to your computer and use it in GitHub Desktop.
Save inluxc/44851336c2674bf133f1f351f4945ab0 to your computer and use it in GitHub Desktop.
Server Setup
#!/bin/bash
echo "Creating Directory Structure"
echo "Install Traefik"
mkdir -p $HOME/containers/traefik
docker run -d -p 8080:8080 -p 80:80 -v $HOME/containers/traefik/traefik.toml:/etc/traefik/traefik.toml traefik:v2.4
echo "Install Portainer"
mkdir -p $HOME/containers/portainer
docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /$HOME/containers/portainer:/data portainer/portainer-ce
echo "Install MeiliSearch"
mkdir -p $HOME/containers/meilisearch
docker run -p 7700:7700 -v $HOME/containers/meilisearch/data.ms:/data.ms -e MEILI_MASTER_KEY=nop2021 -d getmeili/meilisearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment