Advertisement
Guest User

Untitled

a guest
Dec 16th, 2016
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.96 KB | None | 0 0
  1. version: '2'
  2.  
  3. services:
  4.   wordpress:
  5.     image: wordpress:latest
  6.     ports:
  7.      - "8080:80" # change ip if required
  8.     links:
  9.      - db
  10.     volumes:
  11.      - ./data/wordpress:/var/www/html
  12.       - ./wordpress/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
  13.     environment:
  14.       WORDPRESS_DB_HOST: db
  15.       WORDPRESS_DB_NAME: wordpress
  16.       WORDPRESS_DB_USER: root
  17.       WORDPRESS_DB_PASSWORD: password
  18.  
  19.   db:
  20.     image: mariadb:latest # or mariadb
  21.     ports:
  22.      - "3306:3306" # change ip if required
  23.     volumes:
  24.      - ./data/db:/var/lib/mysql
  25.       - ./db:/docker-entrypoint-initdb.d
  26.     environment:
  27.       MYSQL_DATABASE: wordpress
  28.       MYSQL_ROOT_PASSWORD: password
  29.  
  30.   nginx:
  31.     build: ./nginx
  32.     ports:
  33.      - "80:80"
  34.       - "443:443"
  35.     links:
  36.      - wordpress
  37.     volumes:
  38.      - ./nginx/sites-enabled:/etc/nginx/sites-enabled:ro
  39.       - /etc/letsencrypt/ssl:/etc/nginx/ssl
  40.       - ./nginx/html/pokechefslo:/www/html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement