Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2'
- services:
- nginx:
- build:
- context: ./
- dockerfile: docker/nginx.docker
- volumes:
- - ./:/var/www
- #- ./docker/nginx/ssl:/etc/nginx/ssl
- ports:
- - "8080:443"
- links:
- - php-fpm
- php-fpm:
- build:
- context: ./
- dockerfile: docker/php-fpm.docker
- volumes:
- - ./:/var/www
- links:
- - mysql
- environment:
- - "DB_PORT=3306"
- - "DB_HOST=mysql"
- php-cli:
- build:
- context: ./
- dockerfile: docker/php-cli.docker
- volumes:
- - ./:/var/www
- links:
- - mysql
- environment:
- - "DB_PORT=3306"
- - "DB_HOST=mysql"
- - "REDIS_PORT=6379"
- - "REDIS_HOST=redis"
- tty: true
- mysql:
- image: mysql:5.7
- volumes:
- - ./storage/docker/mysql:/var/lib/mysql
- environment:
- - "MYSQL_ROOT_PASSWORD=secret"
- - "MYSQL_USER=Sheroz"
- - "MYSQL_PASSWORD=sheroz06"
- - "MYSQL_DATABASE=auction"
- ports:
- - "33061:3306"
- # redis:
- # image: redis:3.0
- # ports:
- # - "63791:6379"
- # node:
- # image: node:8.6-alpine
- # volumes:
- # - ./:/var/www
- # working_dir: /var/www
- # tty: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement