-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 992 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
version: '3.7'
services:
database:
image: mysql
command: mysqld --default-authentication-plugin=mysql_native_password
container_name: mtp_database
ports:
- ${APP_HOST}:3306:3306
environment:
- MYSQL_ROOT_PASSWORD=veryhardpassword
- MYSQL_DATABASE=easyapp
- MYSQL_USER=easyapp
- MYSQL_PASSWORD=veryhardpassword
application:
image: easyappointments
build:
context: .
volumes:
- ./:/var/mass-testing-platform # this is the source directory mounted in the docker container
- ./src:/var/www/html
- ./vendor:/var/www/vendor
- ./data:/var/www/data
- ./log:/var/www/log
command: dev
container_name: mtp_app
ports:
- ${APP_HOST}:80:80
environment:
- DB_HOST=database:3306
- APP_URL=localhost
depends_on:
- database
env_file:
- .env
restart: always
adminer:
image: adminer
restart: always
ports:
- 8080:8080