SHARE
TWEET

Untitled

a guest Jun 15th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2. services:
  3.   wordpress:
  4.     image: wordpress
  5.     container_name: wp_1
  6.     depends_on:
  7.       - mysql
  8.     volumes:
  9.       - /home/web2/wordpress/wp_1/wp-content:/var/www/html/wp-content
  10.     external_links:
  11.       - mysql
  12.     expose:
  13.       - 80
  14.     environment:
  15.       VIRTUAL_HOST: [ドパむン名]
  16.       WORDPRESS_DB_HOST: mysql:3306
  17.       WORDPRESS_DB_PASSWORD: [パスワード]
  18.       LETSENCRYPT_HOST: [ドパむン名]
  19.      LETSENCRYPT_EMAIL: [パールをドレス]
  20.     restart: always
  21.     networks:
  22.       - net-proxy
  23.  
  24.   mysql:
  25.     container_name: mysql
  26.     image: mysql:5.7.21
  27.     restart: always
  28.     ports:
  29.       - "3306:3306"
  30.     expose:
  31.       - "3306"
  32.     volumes:
  33.       - /home/web2/mysql:/var/lib/mysql
  34.     volumes_from:
  35.       - storage
  36.     environment:
  37.       - MYSQL_ROOT_PASSWORD=[パスワード]
  38.     networks:
  39.       - net-proxy
  40.  
  41.   storage:
  42.     container_name: storage
  43.     build: /home/web2/storage
  44.     volumes:
  45.       - /home/web2/storage/mysql:/var/lib/mysql
  46.     networks:
  47.       - net-proxy
  48.  
  49.   phpmyadmin:
  50.     image: phpmyadmin/phpmyadmin
  51.     environment:
  52.       - PMA_ARBITRARY=1
  53.       - PMA_HOST=mysql
  54.       - PMA_USER=root
  55.       - PMA_PASSWORD=[パスワード]
  56.     links:
  57.       - mysql
  58.     ports:
  59.        - 8080:80
  60.     volumes:
  61.        - /sessions
  62.     networks:
  63.       - net-proxy
  64.  
  65. networks:
  66.   net-proxy:
  67.     external: true
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