SHARE
TWEET

Untitled

a guest Nov 6th, 2018 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3"
  2. services:
  3.   www:
  4.       container_name: www
  5.       build:
  6.         dockerfile: Dockerfile
  7.         context: .
  8.       environment:
  9.           XDEBUG_CONFIG: remote_host=192.168.1.23
  10.       ports:
  11.       - "127.0.0.33:80:80"
  12.       volumes:
  13.       - .:/var/www
  14.       links:
  15.        - blog_database
  16.       networks:
  17.        - main
  18.   blog_database:
  19.       container_name: blog_database
  20.       image: mysql:5.6
  21.       volumes:
  22.        - ./db:/var/lib/mysql
  23.       environment:
  24.       - MYSQL_USERNAME=root
  25.        - MYSQL_ROOT_PASSWORD=123
  26.        - MYSQL_DATABASE=blog
  27.       ports:
  28.       - "3306:3306"
  29.       networks:
  30.        - main
  31.   phpmyadmin:
  32.       container_name: phpmyadmin
  33.       image: phpmyadmin/phpmyadmin
  34.       links:
  35.        - blog_database
  36.       environment:
  37.        - MYSQL_USERNAME=root
  38.         - MYSQL_ROOT_PASSWORD=123
  39.         - PMA_ARBITRARY=1
  40.       ports:
  41.        - "127.0.0.34:80:80"
  42.       networks:
  43.        - main
  44. networks:
  45.  main:
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