forked from kasteckis/symfony-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 1.57 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
65
66
67
68
69
70
71
72
73
74
version: "3"
services:
mysql:
image: mysql:5.7
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: root
MYSQL_PASSWORD:
ports:
- "9906:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: project_phpmyadmin
links:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
networks:
default:
ipv4_address: 192.168.2.4
ports:
- 8183: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
ports:
- "80:8080"
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
develop_init:
build: ./.docker
container_name: project_develop_init
volumes:
- ./:/var/www/html/
- ./.docker/develop_init.sh:/usr/local/bin/develop_init
depends_on:
- "mysql"
- "web"
command: "sh /usr/local/bin/develop_init"
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.2.0/24 # If you change this, make sure to change other IP addresses