commit a4e2de32ce9f5ab573dd2829b22733082fb561da Author: meliurwen Date: Fri Aug 21 21:24:06 2020 +0200 Moved on git diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..fc7bdc5 --- /dev/null +++ b/.env.example @@ -0,0 +1,16 @@ +# Global Settings +LOCAL_STACK_DIR=/srv/docker/volumes/portainer + +# Networks +NETWORK=webservices + +# portainer +# Generate with the command: htpasswd -nb -B admin asd | cut -d ":" - +# On Debian the tool is part of the `apache2-utils` package +PORT_ENCRYPTED_PWD= + +# portainer (optional) +PORT_IMG= +PORT_TAG= +PORT_CONTAINER_NAME= +PORT_RESTART= diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..03bd412 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.env diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..fd342d3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: "3" + +services: + portainer: + image: ${PORT_IMG:-portainer/portainer}:${PORT_TAG:-latest} + container_name: ${PORT_CONTAINER_NAME:-portainer} + restart: ${PORT_RESTART:-unless-stopped} + volumes: + - ${LOCAL_STACK_DIR}/portainer/data:/data + - /var/run/docker.sock:/var/run/docker.sock + env_file: + - portainer.env + command: --no-analytics --admin-password ${ENCRYPTED_PASSWORD} + +networks: + default: + external: + name: ${NETWORK} diff --git a/portainer.env.example b/portainer.env.example new file mode 100644 index 0000000..4f1bc4c --- /dev/null +++ b/portainer.env.example @@ -0,0 +1,5 @@ +# Reverse-proxy and certbot +VIRTUAL_HOST=subdomain.domain.tld +VIRTUAL_PORT=9000 +LETSENCRYPT_HOST=subdomain.domain.tld +LETSENCRYPT_EMAIL=username@domain.tld