Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- image: evild/alpine-nginx:1.9.15-openssl
- container_name: lemp_nginx
- restart: always
- links:
- - php
- volumes:
- - ./project:/var/www/
- - ./docker/nginx/conf/nginx.conf:/etc/nginx/conf/nginx.conf:ro
- - ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- ports:
- - 8080:80
- - 443:443
- php:
- image: evild/alpine-php:7.0.6
- working_dir: /var/www
- container_name: lemp_php
- restart: always
- volumes:
- - ./project:/var/www/
- depends_on:
- - db
- links:
- - db
- environment:
- - DB_NAME=mysql
- - DB_USER=root
- - DB_PASSWORD=password
- db:
- image: mariadb:latest
- container_name: lemp_mariadb
- restart: always
- volumes:
- - db-data:/var/lib/mysql
- environment:
- - MYSQL_ROOT_PASSWORD=password
- volumes:
- db-data:
- driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement