SHARE
TWEET

Untitled

a guest Mar 17th, 2018 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3"
  2. services:
  3.   nginx:
  4.     image: nginx:1.13-alpine
  5.     volumes:
  6.       - ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
  7.       - ./docker/nginx/errors.log:/var/logs/errors.log
  8.       - ./docker/nginx/access.log:/var/logs/access.log
  9.       - ./:/var/www/html
  10.     ports:
  11.       - "8081:80"
  12.     command: nginx -g "daemon off;"
  13.   php:
  14.     build:
  15.       context: ./docker/
  16.       dockerfile: php.Dockerfile
  17.     user: "1000"
  18.     volumes:
  19.       - ./docker/timezone.php.ini:/usr/local/etc/php/conf.d/timezone.php.ini:ro
  20.       - /etc/timezone:/etc/timezone:ro
  21.       - /etc/localtime:/etc/localtime:ro
  22.       - ./:/var/www/html
  23.  
  24.   db_hostname:
  25.     image: mysql:5.5
  26.     user: "1000"
  27.     environment:
  28.       - MYSQL_DATABASE=db
  29.       - MYSQL_ROOT_PASSWORD=root
  30.       - MYSQL_USER=user
  31.       - MYSQL_PASSWORD=user
  32.     volumes:
  33.       - ./docker/mysql:/var/lib/mysql
  34.       - /etc/timezone:/etc/timezone:ro
  35.       - /etc/localtime:/etc/localtime:ro
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