-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
54 lines (54 loc) · 1.59 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
php:
build:
context: ./docker
args:
uid: $UID
ports:
- "80:80"
- "8888:8888" # Webpack Bundle Analyzer
volumes:
- ./:/workspace
- ./src:/var/www/html
- ./docker/apache2/apache2.conf:/etc/apache2/apache2.conf
- ./docker/apache2/docker-php.conf:/etc/apache2/conf-available/docker-php.conf
- ./docker/apache2/sites-available:/etc/apache2/sites-available
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
depends_on:
- mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin:5.0.4
ports:
- "8080:80"
depends_on:
- mysql
environment:
- PMA_ARBITRARY=1
- PMA_HOSTS=mysql
- PMA_USER=devuser
- PMA_PASSWORD=securedevuserpassword
volumes:
- ./docker/phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
mysql:
image: mysql:5.6.48
entrypoint: >
bash -c "
usermod -o -u $UID mysql &&
groupmod -o -g $UID mysql &&
chown -R mysql:root /var/run/mysqld/ /var/log/mysql/ /var/lib/mysql/ &&
/entrypoint.sh mysqld
--character-set-server=utf8
--collation-server=utf8_unicode_ci"
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=laravel_app
- MYSQL_USER=devuser
- MYSQL_PASSWORD=securedevuserpassword
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/init-testing-db.sql:/docker-entrypoint-initdb.d/init-testing-db.sql
mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"