-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (34 loc) · 928 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: '2'
services:
apigility-doctrine:
image: nginx:latest
ports:
- "80:80"
links:
- php
volumes:
- ./:/var/www
- ./docker/config/default.conf:/etc/nginx/conf.d/default.conf
php:
build:
context: .
dockerfile: docker/build/php-fpm
links:
- mysql
ports:
- "9000:9000"
volumes:
- ./:/var/www
- ./docker/config/php.ini:/usr/local/etc/php/conf.d/custom.ini
mysql:
image: mysql:5.7
environment:
- MYSQL_USER=doctrine
- MYSQL_PASSWORD=apigility
- MYSQL_DATABASE=apigility
- MYSQL_ROOT_PASSWORD=123
ports:
- "3306:3306"
volumes:
- ./docker/data/mysql:/var/lib/mysql
- ./docker/config/my.cnf:/etc/mysql/conf.d/custom.cnf