Skip to content

Instantly share code, notes, and snippets.

@manchoz
Created May 31, 2018 19:55
Show Gist options
  • Save manchoz/72e3594476afd49070372eaa8b95d12e to your computer and use it in GitHub Desktop.
Save manchoz/72e3594476afd49070372eaa8b95d12e to your computer and use it in GitHub Desktop.
docker-compose.yml
version: "3.6"
networks:
net-sito1:
net-sito2:
services:
mysql-sito1:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=segretissima1
networks:
net-sito1:
aliases:
- mysql
- mysql-sito1
wordpress-sito1:
image: wordpress
environment:
- WORDPRESS_DB_PASSWORD=segretissima1
networks:
net-sito1:
mysql-sito2:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=segretissima2
networks:
net-sito2:
aliases:
- mysql
- mysql-sito2
wordpress-sito2:
image: wordpress
environment:
- WORDPRESS_DB_PASSWORD=segretissima1
networks:
net-sito2:
nginx-siti:
image: nginx:alpine
volumes:
- ./nginx/sito1.conf:/etc/nginx/conf.d/sito1.conf
- ./nginx/sito2.conf:/etc/nginx/conf.d/sito2.conf
ports:
- 80:80
networks:
net-sito1:
net-sito2:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment