-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
37 lines (37 loc) · 934 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
37
version: '3'
services:
apache:
build: ./containers/apache-php
environment:
SLIM_ENV: development-docker
ports:
- 80:80
volumes:
- ./public:/var/www/html
- ./app:/var/www/app
- ./vendor:/var/www/vendor
- ./logs:/var/www/logs
- ./containers/apache-php/php.ini:/usr/local/etc/php/php.ini
- ./containers/apache-php/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
depends_on:
- mysql
mysql:
image: mysql:5.6
environment:
- MYSQL_ROOT_PASSWORD=password
volumes:
- ./containers/mysql/my.cnf:/usr/local/etc/mysql/my.cnf
- ./containers/mysql/datadir:/var/lib/mysql
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_ARBITRARY: 1
PMA_HOSTS: mysql
PMA_USER: root
PMA_PASSWORD: password
links:
- mysql