badping_nagios_better/docker-compose.yml

52 строки
930 B
YAML
Исходник Обычный вид История

2019-11-04 22:14:53 +00:00
version: '3.3'
services:
mysql:
image: mysql:latest
restart: always
volumes:
- database:/var/lib/mysql
environment:
MYSQL_DATABASE: 'db'
MYSQL_USER: 'user'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'rootPassword'
2019-11-06 21:48:21 +00:00
command: --default-authentication-plugin=mysql_native_password
2019-11-04 22:14:53 +00:00
ports:
- 3306:3306
2019-11-06 21:48:21 +00:00
networks:
- backend
- frontend
2019-11-04 22:14:53 +00:00
app:
build:
context: ./docker
dockerfile: php-fpm.docker
volumes:
- "./public/:/app/public"
- "./src/:/app/src"
depends_on:
- mysql
2019-11-06 21:48:21 +00:00
networks:
- backend
2019-11-04 22:14:53 +00:00
nginx:
build:
context: ./docker
dockerfile: nginx.docker
volumes:
- "./public/:/app/public"
ports:
- 80:80
depends_on:
- app
2019-11-06 21:48:21 +00:00
networks:
- frontend
- backend
2019-11-04 22:14:53 +00:00
volumes:
database:
2019-11-06 21:48:21 +00:00
networks:
frontend:
external:
name: proxy_proxy
backend: