Обновляемся
apt update && apt upgradeСтавим docker
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 | version: '3.7' | |
| networks: | |
| traefik: | |
| external: true | |
| volumes: | |
| db_data: | |
| secrets: |
| app: | |
| image: my/webapp:latest | |
| labels: | |
| - "traefik.enable=true" | |
| - "traefik.frontend.rule=Host:supercoolapp.com" | |
| - "traefik.frontend.errors.network.backend=error" | |
| - "traefik.frontend.errors.network.query=/{status}.html" | |
| - "traefik.frontend.errors.network.status=500-511" | |
| - "traefik.port=3000" | |
| error_pages: |
| FROM golang:1.14-alpine | |
| COPY . /go/src/app | |
| WORKDIR /go/src/app | |
| RUN go get -v -d | |
| RUN go install | |
| CMD ["app"] |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/docker/docker/api/types" | |
| "github.com/docker/docker/client" | |
| ) |
| #http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found | |
| curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh | |
| echo 'source ~/.git-prompt.sh' >> ~/.bashrc |
Обновляемся
apt update && apt upgradeСтавим docker
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 | nginx/ | |
| !nginx/.gitkeep | |
| !nginx/logs/.gitkeep | |
| src/ | |
| tmp/ |
| # Assumptions: easyrsa3 available in current dir, and functional openssl. | |
| # This basic example puts the "offline" and "sub" PKI dirs on the same system. | |
| # A real-world setup would use different systems and transport the public components. | |
| # Build root CA: | |
| EASYRSA_PKI=offline ./easyrsa init-pki | |
| EASYRSA_PKI=offline ./easyrsa build-ca nopass | |
| # Build sub-CA request: | |
| EASYRSA_PKI=sub ./easyrsa init-pki |
Build, install, and run the latest OpenSSH Server as a systemd service.