-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocker-compose.yml
42 lines (37 loc) · 1.09 KB
/
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'
services:
php:
image: atillay/lemp-php:7.3 # Also available : atillay/lemp-php:7.2
env_file:
- .env
volumes:
- ./docker/php/php.ini:/usr/local/etc/php/php.ini
- .:/var/www:cached
nginx:
image: atillay/lemp-nginx
ports:
- ${SERVER_PORT}:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./log:/var/log/nginx
- ./public:/var/www/public
mysql:
image: mysql:5.7
environment:
- MYSQL_ROOT_PASSWORD=StrongPassword
- MYSQL_DATABASE=${DB_NAME}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
volumes:
- ./docker/mysql/custom.cnf:/etc/mysql/conf.d/custom.cnf
- ./docker/db:/var/lib/mysql:cached
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- ${PMA_PORT}:80
environment:
- PMA_HOST=${DB_HOST}
maildev:
image: djfarrelly/maildev
ports:
- ${MAILDEV_PORT}:80