Skip to content

Instantly share code, notes, and snippets.

@cmendesce
Last active March 9, 2019 19:00
Show Gist options
  • Select an option

  • Save cmendesce/fec7a8e9c003829b4c227f11419503a9 to your computer and use it in GitHub Desktop.

Select an option

Save cmendesce/fec7a8e9c003829b4c227f11419503a9 to your computer and use it in GitHub Desktop.
version: '3'
services:
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 80:80
- 443:443
db:
image: mysql:5.6
environment:
MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: w0rdpress
MYSQL_USER: root
wordpress1:
image: wordpress:latest
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: w0rdpress
depends_on:
- db
wordpress2:
image: wordpress:latest
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: w0rdpress
depends_on:
- db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment