-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (61 loc) · 1.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
mysql:
image: mysql:8.0
container_name: project_mysql
networks:
default:
ipv4_address: 192.168.2.3
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE: project
MYSQL_USER: project
MYSQL_PASSWORD: project
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: project_phpmyadmin
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
networks:
default:
ipv4_address: 192.168.2.4
ports:
- "81:80"
web:
build: ./.docker
container_name: project_web
networks:
default:
ipv4_address: 192.168.2.2
volumes:
- ./:/var/www/html/
- ./.docker/virtualhost.conf:/etc/apache2/sites-available/000-default.conf
- ./.docker/php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./.docker/php/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
ports:
- "80:80"
depends_on:
- mysql
mailhog:
image: mailhog/mailhog
container_name: project_mailhog
ports:
- "1025:1025" # smtp server
- "8025:8025" # web ui
networks:
default:
ipv4_address: 192.168.2.5
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.2.0/24