SHARE
TWEET

Untitled

a guest Aug 24th, 2019 830 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:
  39.     - './wordpress:/var/www/html/'
  40.     - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
  41.     environment:
  42.       WORDPRESS_DB_HOST: db:3306
  43.       WORDPRESS_DB_USER: wordpress
  44.       WORDPRESS_DB_PASSWORD: wordpress
  45.     networks:
  46.       - wpsite
  47. networks:
  48.   wpsite:
  49. volumes:
  50.   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