SHARE
TWEET

Untitled

a guest Oct 18th, 2019 124 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.0'
  2.  
  3. services:
  4.   wordpress:
  5.     image: wordpress
  6.     restart: always
  7.     ports:
  8.       - 80:80
  9.     environment:
  10.       WORDPRESS_DB_HOST: db
  11.       WORDPRESS_DB_USER: wp
  12.       WORDPRESS_DB_PASSWORD: 123456
  13.       WORDPRESS_DB_NAME: wordpress
  14.     depends_on:
  15.       - db
  16.     volumes:
  17.       - wordpress:/var/www/html
  18.     networks:
  19.       - backend
  20.  
  21.   db:
  22.     image: mariadb:latest
  23.     volumes:
  24.       - db:/var/lib/mysql
  25.     restart: always
  26.     ports:
  27.       - 3306:3306
  28.     environment:
  29.       MYSQL_DATABASE: wordpress
  30.       MYSQL_USER: wp
  31.       MYSQL_PASSWORD: 123456
  32.       MYSQL_RANDOM_ROOT_PASSWORD: '1'
  33.     networks:
  34.       - backend
  35.  
  36. volumes:
  37.   wordpress:
  38.   db:
  39.  
  40. networks:
  41.   backend:
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top