.env file:
DEFAULT_HOST=example.com
[email protected]
Create network:
docker network create nginx-proxy
| version: '3' | |
| services: | |
| mtproto: | |
| image: telegrammessenger/proxy:latest | |
| ports: | |
| - 51820:443 | |
| restart: always | |
| volumes: | |
| - ./data:/data # Replace it to your volume, if need |
.env file:
DEFAULT_HOST=example.com
[email protected]
Create network:
docker network create nginx-proxy
| #!/bin/bash | |
| DIFF_FILES=$(git diff --name-only origin/master | grep '.*\.py') | |
| if [ "$DIFF_FILES" ]; then | |
| echo -e "Changed files:\n$DIFF_FILES\n" && DIFF=$(echo $DIFF_FILES | xargs) | |
| isort &>/dev/null $DIFF && autopep8 --in-place --aggressive --aggressive $DIFF && flake8 $DIFF | |
| [ $? -eq 0 ] && echo "Code quality check success" || echo "Code quality check failed" | |
| else | |
| echo -e "No changes detected" | |
| fi |
В большинстве распространенных дистрибутивов Linux для установки Docker вам необходимо выполнить в терминале:
$ curl -fsSL get.docker.com -o /tmp/get-docker.sh && sudo sh /tmp/get-docker.sh
Для Windows и macOS воспользуйтесь официальным гайдом.
Вы можете генерировать секреты или пароли несколькими способами:
| version: '3' | |
| services: | |
| reader: | |
| image: miniflux/miniflux:latest | |
| expose: | |
| - 8080 | |
| depends_on: | |
| - db | |
| env_file: .env |
| import string | |
| def hex_encode_int(n): | |
| alphabet = string.digits + string.ascii_uppercase + string.ascii_lowercase | |
| result = "" | |
| while n: | |
| n, t = divmod(n, len(alphabet)) | |
| result += alphabet[t] | |
| return result or "0" |
| FROM alpine:latest | |
| # ARG PACKAGE="hugo_extended" | |
| ARG PACKAGE="hugo" | |
| ARG REPOSITORY="gohugoio/hugo" | |
| ARG VERSION="0.58.2" | |
| WORKDIR /opt | |
| # Install dependencies (bash, curl and jq for parsing Github) |
HTTPSEnv:
CONFIGS=/srv/config
[email protected]
DOMAIN=sqds.me
RESTARTS=unless-stopped