1234567891011121314151617181920212223242526272829303132333435 |
- version: '3.3'
- services:
- web:
- image: richarvey/nginx-php-fpm:1.5.0
- ports:
- - "80:80"
- networks:
- - frontend
- - backend
- restart: always
- volumes:
- - "./src/:/var/www/html/"
- depends_on:
- - database
- database:
- image: mysql:5.7
- volumes:
- - "./db/:/docker-entrypoint-initdb.d"
- restart: always
- ports:
- - "3306:3306"
- networks:
- - backend
- environment:
- MYSQL_ROOT_HOST: "%"
- MYSQL_DATABASE: "test"
- MYSQL_USER: "test"
- MYSQL_PASSWORD: "test"
- MYSQL_ROOT_PASSWORD: "test"
- MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
- networks:
- frontend:
- backend:
|