-
Notifications
You must be signed in to change notification settings - Fork 145
/
Copy pathdocker-compose.yml
41 lines (40 loc) · 1.08 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
version: '3'
services:
php:
build: .
container_name: laravel-vue-boilerplate
ports:
- 8000:80
entrypoint: bash -c "echo -e \"`/sbin/ip route|awk '/default/ { print $$3 }'`\thost.docker.internal\" | tee -a /etc/hosts > /dev/null && /usr/local/bin/docker-php-entrypoint -k start"
volumes:
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini
- ./docker/apache2/httpd-vhosts.conf:/etc/apache2/sites-enabled/000-default.conf
- ./:/var/www/html
depends_on:
- mysqldb
myadmin:
image: phpmyadmin/phpmyadmin:4.9
container_name: lvb-phpmyadmin
ports:
- 8081:80
environment:
- PMA_ARBITRARY=1
- PMA_HOST=${DB_CONNECTION}
restart: always
depends_on:
- mysqldb
mysqldb:
image: mysql:5.7
container_name: lvb-mysql
restart: always
env_file:
- .env
environment:
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=true
ports:
- 3306:3306
volumes:
- /var/lib/mysql