SHARE
TWEET

Untitled

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