SHARE
TWEET

Untitled

a guest Sep 11th, 2019 821 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.   # Database
  5.   db:
  6.     image: mysql:5.7
  7.     volumes:
  8.       - db_data:/var/lib/mysql
  9.     restart: always
  10.     environment:
  11.       MYSQL_ROOT_PASSWORD: password
  12.       MYSQL_DATABASE: wordpress
  13.       MYSQL_USER: wordpress
  14.       MYSQL_PASSWORD: wordpress
  15.     networks:
  16.       - wpsite
  17.   # phpmyadmin
  18.   phpmyadmin:
  19.     depends_on:
  20.       - db
  21.     image: phpmyadmin/phpmyadmin
  22.     restart: always
  23.     ports:
  24.       - '8080:80'
  25.     environment:
  26.       PMA_HOST: db
  27.       MYSQL_ROOT_PASSWORD: password
  28.     networks:
  29.       - wpsite
  30.   # Wordpress
  31.   wordpress:
  32.     depends_on:
  33.       - db
  34.     image: wordpress:latest
  35.     ports:
  36.       - '8000:80'
  37.     restart: always
  38.     volumes: ['./:/var/www/html', './uploads.ini:/usr/local/etc/php/conf.d/uploads.ini']
  39.     environment:
  40.       WORDPRESS_DB_HOST: db:3306
  41.       WORDPRESS_DB_USER: wordpress
  42.       WORDPRESS_DB_PASSWORD: wordpress
  43.     networks:
  44.       - wpsite
  45.   # WP-CLI
  46.   cli:
  47.     image: wordpress:cli
  48.     volumes: ['./:/var/www/html']
  49.     networks:
  50.      - wpsite
  51. networks:
  52.   wpsite:
  53. volumes:
  54.   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