Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit fcf8230

Browse files
committed
* Added IP for PHP-FPM container.
* Checked work of Selenium and PHP-FPM.
1 parent f410278 commit fcf8230

File tree

3 files changed

+29
-21
lines changed

3 files changed

+29
-21
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@
1919

2020
## Docker-based LAMP stack 1.3.0
2121
* Switched to the official Mailhog image.
22+
23+
## Docker-based LAMP stack 1.4.0
24+
* Added IP for PHP-FPM container.
25+
* Checked work of Selenium and PHP-FPM.
26+

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,25 +54,26 @@ Install [Docker Toolbox](https://docs.docker.com/toolbox/overview).
5454
### Linux
5555
Run inside the folder with **docker-compose.yml**: `docker-compose up -d`
5656

57-
To view the **PHP** info with the **Apache2 in MPM mode** use the IP: **http://172.55.0.2/info.php**.
57+
To view the **PHP** info with the **Apache2 in MPM mode** use the IP: **http://172.55.0.3/info.php**.
5858

59-
To view the **PHP** info with the **NGINX** use the IP: **http://172.55.0.3/info.php**.
59+
To view the **PHP** info with the **NGINX** use the IP: **http://172.55.0.4/info.php**.
6060

61-
**MailHog** is available under **http://172.55.0.5:8025**
61+
**MailHog** is available under **http://172.55.0.6:8025**
6262

63-
**NGROK** is available under **http://172.55.0.6:4040**
63+
**NGROK** is available under **http://172.55.0.7:4040**
6464

65-
**PhpMyAdmin** is available under **http://172.55.0.8**
65+
**PhpMyAdmin** is available under **http://172.55.0.9**
6666

6767
You can edit your system host file for accessing containers via domain names by adding lines (or something like this based on your IP and domains, don't forget to change `extra_hosts` in `docker-compose.yml`):
6868

69-
`172.55.0.8 phpmyadmin.dockerlamp`
69+
`172.55.0.4 site.dockerlamp`
7070

71-
`172.55.0.3 site.dockerlamp`
71+
`172.55.0.6 mailhog.dockerlamp`
7272

73-
`172.55.0.5 mailhog.dockerlamp`
73+
`172.55.0.7 ngrok.dockerlamp`
74+
75+
`172.55.0.9 phpmyadmin.dockerlamp`
7476

75-
`172.55.0.6 ngrok.dockerlamp`
7677

7778
### Docker Toolbox
7879
#### Windows

docker-compose.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ services:
4848
PHP_SHORT_OPEN_TAG: 1
4949
PHP_MEMORY_LIMIT: 1024M
5050
networks:
51-
- internal
51+
internal:
52+
shared:
53+
ipv4_address: 172.55.0.2
5254
extra_hosts:
53-
- "site.dockerlamp:172.55.0.3"
55+
- "site.dockerlamp:172.55.0.4"
5456

5557
apache2_mpm:
5658
image: lordius/alpine-apache
@@ -70,7 +72,7 @@ services:
7072
networks:
7173
internal:
7274
shared:
73-
ipv4_address: 172.55.0.2
75+
ipv4_address: 172.55.0.3
7476

7577
nginx:
7678
image: lordius/alpine-nginx
@@ -97,7 +99,7 @@ services:
9799
networks:
98100
internal:
99101
shared:
100-
ipv4_address: 172.55.0.3
102+
ipv4_address: 172.55.0.4
101103

102104

103105
################ Node stack.
@@ -121,24 +123,24 @@ services:
121123
# networks:
122124
# internal:
123125
# shared:
124-
# ipv4_address: 172.55.0.4
126+
# ipv4_address: 172.55.0.5
125127

126128
################ Extra toolkit images.
127129
mailhog:
128130
image: mailhog/mailhog
129131
networks:
130132
internal:
131133
shared:
132-
ipv4_address: 172.55.0.5
134+
ipv4_address: 172.55.0.6
133135

134136
ngrok:
135137
image: lordius/alpine-ngrok
136138
environment:
137139
# Here must be your container IP accesable from browser.
138-
ARGS: http 172.53.0.3:80
140+
ARGS: http 172.53.0.4:80
139141
networks:
140142
shared:
141-
ipv4_address: 172.55.0.6
143+
ipv4_address: 172.55.0.7
142144

143145
# solr:
144146
# image: solr:6.5.1
@@ -154,7 +156,7 @@ services:
154156
# networks:
155157
# internal:
156158
# shared:
157-
# ipv4_address: 172.55.0.7
159+
# ipv4_address: 172.55.0.8
158160

159161
################ DB managers.
160162
# Requires mysql container.
@@ -171,7 +173,7 @@ services:
171173
networks:
172174
internal:
173175
shared:
174-
ipv4_address: 172.55.0.8
176+
ipv4_address: 172.55.0.9
175177

176178
# adminer:
177179
# image: adminer
@@ -187,7 +189,7 @@ services:
187189
# networks:
188190
# internal:
189191
# shared:
190-
# ipv4_address: 172.55.0.9
192+
# ipv4_address: 172.55.0.10
191193

192194
################ Database images.
193195
mysql:
@@ -253,7 +255,7 @@ services:
253255
# - NET_RAW
254256
# networks:
255257
# shared:
256-
# ipv4_address: 172.55.0.10
258+
# ipv4_address: 172.55.0.11
257259

258260

259261

0 commit comments

Comments
 (0)