-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·41 lines (39 loc) · 984 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
services:
app:
build: .
env_file:
.env
ports:
- "80:80"
volumes:
- ./src:/var/www/html
- ./src/var:/var/www/html/var:delegated
- ./src/vendor:/var/www/html/vendor:delegated
working_dir: /var/www/html
depends_on:
- mysql
restart: always
mysql:
image: mariadb
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_USER=${DATABASE_USERNAME}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DATABASE_ROOT_PASSWORD}
volumes:
- ./docker/mysql:/var/lib/mysql:delegated
restart: always
mysql-test:
image: mariadb
ports:
- 3307:3306
environment:
- MYSQL_DATABASE=${DATABASE_NAME}_test
- MYSQL_USER=${DATABASE_USERNAME}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DATABASE_ROOT_PASSWORD}
volumes:
- ./docker/mysql-test:/var/lib/mysql:delegated
restart: always