forked from andreipa/docker-lamp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (48 loc) · 1.15 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
43
44
45
46
47
48
49
version: "3.9"
services:
webserver:
build:
context: ./bin/webserver
container_name: "dev-7.4-webserver"
restart: "always"
ports:
- "80:80"
- "443:443"
links:
- mysql
- mailhog
networks:
- dev-lamp-net
volumes:
- ${DOCUMENT_ROOT}:/var/www/html
- ${PHP_INI}:/usr/local/etc/php/php.ini
- ${VHOSTS_DIR}:/etc/apache2/sites-enabled
- ${APACHE_LOG_DIR}:/var/log/apache2
mysql:
build: ./bin/mysql
container_name: "dev-8.0-mysql"
command: --lower_case_table_names=1 --default-authentication-plugin=mysql_native_password
restart: "always"
ports:
- "3306:3306"
networks:
- dev-lamp-net
volumes:
- ${MYSQL_DATA_DIR}:/var/lib/mysql
- ${MYSQL_LOG_DIR}:/var/log/mysql
environment:
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PASSWORD}
- MYSQL_USER=${DB_USER}
- MYSQL_PASSWORD=${DB_PASSWORD}
mailhog:
image: mailhog/mailhog:latest
container_name: "dev-mail-mailhog"
restart: "always"
ports:
- "1025:1025"
- "8025:8025"
networks:
- dev-lamp-net
networks:
dev-lamp-net:
name: dev-lamp-global-net