-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
45 lines (44 loc) · 986 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
38
39
40
41
42
43
44
45
version: '3.4'
services:
web:
container_name: m-web
image: multiplicacao
build: .
command: /bin/sh
#restart: always
volumes:
- .:/var/www/multiplicacao
- ./php/php.ini:/etc/php/7.0/apache2/php.ini
depends_on:
- db
ports:
- 80:80
db:
container_name: m-db
image: mysql:5.7
#restart: always
volumes:
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
# MYSQL_USER: root
#MYSQL_PASSWORD: root
#MYSQL_DATABASE: multiplicacao
volumes:
- ./mysql:/var/lib/mysql
- ./mysql-cnf/mysql.conf.d/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
composer:
container_name: vendor
image: composer:1.7
working_dir: /var/www/multiplicacao
entrypoint:
- composer
- install
- --ignore-platform-reqs
- --no-interaction
- --no-plugins
- --no-scripts
- --prefer-dist
volumes:
- .:/var/www/multiplicacao