Last active
January 12, 2017 01:13
-
-
Save xfalcox/0a1c81fa6a289de4e98c1d4d3d5444c6 to your computer and use it in GitHub Desktop.
wordpress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -qO- https://get.docker.com/ | sh | |
curl -L "https://github.com/docker/compose/releases/download/1.9.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
mkdir /var/wordpress | |
cd /var/wordpress | |
nano docker-compose.yml | |
# Copiar o conteúdo outro arquivo | |
docker-compose up | |
#espera uns 10 minutos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https-portal: | |
image: steveltn/https-portal:1.0.0 | |
ports: | |
- '80:80' | |
- '443:443' | |
links: | |
- wordpress | |
restart: always | |
environment: | |
DOMAINS: 'blog.do.mal.com -> http://wordpress' | |
STAGE: 'production' | |
# FORCE_RENEW: 'true' | |
wordpress: | |
image: wordpress | |
links: | |
- db:mysql | |
db: | |
image: mariadb | |
environment: | |
MYSQL_ROOT_PASSWORD: 'securepassword' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment