-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 915 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
46
47
48
49
version: "2"
services:
web:
container_name: test_web
build:
context: ./src/docker/php
dockerfile: Dockerfile
# dockerfile: Dockerfile-xdebug
ports:
- "8090:80"
volumes:
- ./build:/srv
- ./src/test_project:/srv/profiles/test_project
links:
- mailhog:mailhog
- mysql:mysql
depends_on:
- mailhog
- mysql
restart: always
command: php -t /srv -S 0.0.0.0:80 .ht.router.php
networks:
- back
mysql:
image: percona:5.7
container_name: test_mysql
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_DATABASE: d8
MYSQL_USER: d8
MYSQL_PASSWORD: d8
MYSQL_ROOT_PASSWORD: d8root
restart: always
networks:
- back
mailhog:
image: diyan/mailhog
container_name: test_mail
restart: always
networks:
- back
networks:
back:
driver: bridge