|
1 rok temu | |
---|---|---|
defaults | 1 rok temu | |
tasks | 1 rok temu | |
README.md | 1 rok temu |
This sets up a Docker web server on a CentOS 7 host with the following features:
nginx-proxy
container with the configuration for the certificates. (when docker_web_setup_https_container: true
)docker_web_http_port: 80 # The HTTP port that should be exposed by nginx-proxy
docker_web_https_port: 443 # The HTTPS port that should be exposed by nginx-proxy
docker_web_deploy_key: "{{ role_path }}/../../files/deploy_key" # The path to the SSH public key for the deploy key
docker_web_deploy_key_remote: "/tmp/git.deploy_key" # The path the SSH public key should be copied to on the server
docker_web_build_command: "cd /opt/web-containers && docker compose up -d" # The build command for the container repository - can be a bash script, python etc
docker_web_yum_dependencies:
# Yum dependencies
- python-setuptools
- python-pip
- git
- docker-compose
docker_web_pip_dependencies:
# Pip dependencies
- docker
The following vars have no defaults and must be specified:
docker_web_git_repo: "git@github.com:somebody/web-containers.git" # the git repository to build containers from