SHARE
TWEET

Untitled

a guest Dec 23rd, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.  db:
  5.   image: mariadb
  6.   volumes:
  7.   - db_data:/var/lib/mysql
  8.   restart: always
  9.   ports:
  10.   - "8081:3306"
  11.   environment:
  12.    MYSQL_ROOT_PASSWORD: root
  13.    MYSQL_DATABASE: wordpress
  14.    MYSQL_USER: root
  15.    MYSQL_PASSWORD: root
  16.  
  17.  wordpress:
  18.   depends_on:
  19.   - db
  20.   image: wordpress:latest
  21.   volumes:
  22.   - ./:/var/www/html
  23.   ports:
  24.   - "8080:80"
  25.   restart: always
  26.   environment:
  27.    WORDPRESS_DB_HOST: db:3306
  28.    WORDPRESS_DB_USER: root
  29.    WORDPRESS_DB_PASSWORD: root
  30. volumes:
  31.  db_data:
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