Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.6'
- services:
- apache:
- image: httpd:2.4
- volumes:
- - ./src:/var/www/html
- - ./httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf
- # - ./httpd/httpd.conf:/etc/apache2/conf/httpd.conf
- depends_on:
- - php
- nginx:
- image: nginx:1.13
- ports:
- - 80:80
- volumes:
- - ./src:/var/www/html
- - ./nginx/nginx.conf:/etc/nginx/nginx.conf
- depends_on:
- - apache
- php:
- build: .
- # image: php:7.2-fpm
- volumes:
- - ./src:/var/www/html
- environment:
- DB_PORT: 3304
- DB_HOST: db
- db:
- image: mysql
- command: --default-authentication-plugin=mysql_native_password
- restart: always
- environment:
- MYSQL_ROOT_PASSWORD: db
- MYSQL_USER: user
- MYSQL_PASSWORD: password
- MYSQL_DATABASE: appDB
- ports:
- - 3304:3304
- volumes:
- - ./src/init.sql:/docker-entrypoint-initdb.d/init.sql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement