Created
June 21, 2020 07:10
-
-
Save varinen/f38e23f05b16d83f71232e0048584347 to your computer and use it in GitHub Desktop.
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
version: "3" | |
services: | |
db_node_domain_2: | |
image: mysql:5.7 | |
volumes: | |
- db_data:/var/lib/mysql | |
restart: unless-stopped | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: password | |
container_name: wordpress_db_2 | |
wordpress_2: | |
depends_on: | |
- db_node_domain_2 | |
image: wordpress:latest | |
expose: | |
- 80 | |
restart: unless-stopped | |
environment: | |
VIRTUAL_HOST: site2.yoursite.tld | |
LETSENCRYPT_HOST: site2.yoursite.com | |
WORDPRESS_DB_HOST: db_node_domain_2:3306 | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: password | |
container_name: wordpress_2 | |
volumes: | |
db_data: | |
networks: | |
default: | |
external: | |
name: nginx-proxy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment