SHARE
TWEET

Untitled

a guest May 22nd, 2017 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2. services:
  3.   wordpress:
  4.     image: wordpress:latest # https://hub.docker.com/_/wordpress/
  5.     ports:
  6.       - 80:80 # change ip if required
  7.       - 443:443
  8.     volumes:
  9.       - ./wp-app:/var/www/html # Full wordpress project
  10.       #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development
  11.       #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
  12.     environment:
  13.       WORDPRESS_DB_HOST: db
  14.       WORDPRESS_DB_NAME: cosmicwp
  15.       WORDPRESS_DB_USER: cosmic
  16.       WORDPRESS_DB_PASSWORD: mypass
  17.     depends_on:
  18.       - db
  19.     networks:
  20.       - wordpress-network
  21.   db:
  22.     image: mariadb:latest # https://hub.docker.com/_/mysql/ - or mariadb https://hub.docker.com/_/mariadb
  23.     ports:
  24.       - 127.0.0.1:3306:3306 # change ip if required
  25.     volumes:
  26.       - ./wp-data:/docker-entrypoint-initdb.d
  27.     environment:
  28.       MYSQL_ROOT_PASSWORD: mypass
  29.       MYSQL_DATABASE: cosmicwp
  30.       MYSQL_USER: cosmic
  31.       MYSQL_PASSWORD: mypass
  32.     networks:
  33.       - wordpress-network
  34. networks:
  35.   wordpress-network:
  36.       driver: bridge
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top