-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
48 lines (45 loc) · 926 Bytes
/
docker-compose.yaml
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
version: "3"
services:
app:
build: .
depends_on:
- mysql
volumes:
- .:/var/www/html/app
- .docker/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
networks:
- app-net
environment:
PHP_IDE_CONFIG: "serverName=xdebug-docker"
XDEBUG_CONFIG: ${XDEBUG_CONFIG:-}
nginx:
image: nginx:1.17-alpine
depends_on:
- app
ports:
- 8000:80
volumes:
- ./:/var/www/html/app
- ./.docker/nginx:/etc/nginx/conf.d
networks:
- app-net
mysql:
image: mysql:5.7.34
networks:
- app-net
ports:
- 33066:3306
volumes:
- .docker/mysql:/var/lib/mysql
environment:
- MYSQL_DATABASE=test_task
- MYSQL_ROOT_PASSWORD=secret
mailhog:
image: mailhog/mailhog:v1.0.0
networks:
- app-net
ports:
- 8025:8025
networks:
app-net:
driver: bridge