Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- nginx:
- image: nginx:1.13-alpine
- volumes:
- - ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- - ./docker/nginx/errors.log:/var/logs/errors.log
- - ./docker/nginx/access.log:/var/logs/access.log
- - ./:/var/www/html
- ports:
- - "8081:80"
- command: nginx -g "daemon off;"
- php:
- build:
- context: ./docker/
- dockerfile: php.Dockerfile
- user: "1000"
- volumes:
- - ./docker/timezone.php.ini:/usr/local/etc/php/conf.d/timezone.php.ini:ro
- - /etc/timezone:/etc/timezone:ro
- - /etc/localtime:/etc/localtime:ro
- - ./:/var/www/html
- db_hostname:
- image: mysql:5.5
- user: "1000"
- environment:
- - MYSQL_DATABASE=db
- - MYSQL_ROOT_PASSWORD=root
- - MYSQL_USER=user
- - MYSQL_PASSWORD=user
- volumes:
- - ./docker/mysql:/var/lib/mysql
- - /etc/timezone:/etc/timezone:ro
- - /etc/localtime:/etc/localtime:ro
Add Comment
Please, Sign In to add comment