forked from nabeelio/phpvms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
66 lines (63 loc) · 1.74 KB
/
docker-compose.dev.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
55
56
57
58
59
60
61
62
63
64
65
66
#
# Run with either `make docker-test` or the following Docker command:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
#
---
services:
# This is overriding the docker-compose.yaml file to have a localized version
# of the container that you can use for building/testing
app:
build:
context: .
environment:
DB_HOST: mysql
#REDIS_HOST: redis
volumes:
- ./:/var/www
# - ./bootstrap:/var/www/bootstrap
# - ./config:/var/www/config
# - ./modules:/var/www/modules
# - ./public:/var/www/public
# - ./resources:/var/www/resources
# - ./storage:/var/www/storage
# - ./tests:/var/www/tests
# - ./resources/docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
# - ./composer.json:/var/www/composer.json
# - ./composer-lock.json:/var/www/composer-lock.json
# - ./env.php:/var/www/env.php
depends_on:
- mysql
#- redis
nginx:
image: nginx
command: /bin/sh -c "exec nginx -g 'daemon off;'"
volumes:
- ./:/var/www
- ./resources/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
depends_on:
- app
mysql:
image: mysql:8
command: "--innodb_use_native_aio=0"
environment:
MYSQL_DATABASE: phpvms
MYSQL_USER: phpvms
MYSQL_PASSWORD: phpvms
MYSQL_ROOT_PASSWORD:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- ./storage/docker/mysql:/var/lib/mysql
- ./resources/docker/mysql:/etc/mysql/conf.d
ports:
- 3306:3306
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
links:
- mysql
ports:
- 8000:80
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=300M