@@ -12,12 +12,12 @@ Great LAMP devstack based on **Docker** & **Docker Compose** for you home progra
1212## LAMP
1313
1414- Apache 2.4.x
15- - PHP 7.1 + Composer + PHPMailer
16- - PHP 5.6 + Composer + PHPMailer
17- - NodeJS 6. 7.x + NPM 3.10 .x
15+ - PHP 7.1.x + Composer + PHPMailer
16+ - PHP 5.6.x + Composer + PHPMailer
17+ - NodeJS 7.x + NPM 4 .x
1818- MariaDB 10.1
1919- PostgreSQL 9.6
20- - Adminer 4.2.5
20+ - Adminer 4.3.x
2121
2222## Install
2323
@@ -29,6 +29,8 @@ Great LAMP devstack based on **Docker** & **Docker Compose** for you home progra
2929
30302. Setup devstack variables in your `.profile` or `.bashrc`.
3131
32+ > This values are by dafault!
33+
3234 - `DEVSTACK_DOCKER=~/.devstack/docker-compose.yaml` (docker compose file)
3335 - `DEVSTACK_PREFIX=devstack` (container's prefix)
3436 - `DEVSTACK_USER=dfx` (attached user in container) [you can leave it]
@@ -47,6 +49,18 @@ Great LAMP devstack based on **Docker** & **Docker Compose** for you home progra
4749
4850## Configuration
4951
52+ ### Ports
53+
54+ | Container | Ports | IP |
55+ |---------------|----------|--------------|
56+ | Apache | 80 / 443 | 172.10.10.5 |
57+ | PHP 7.1 + FPM | | 172.10.10.10 |
58+ | PHP 5.6 + FPM | | 172.10.10.11 |
59+ | NodeJS | | 172.10.10.12 |
60+ | Adminer | 8000 | 172.10.10.13 |
61+ | MariaDB | 3306 | 172.10.10.20 |
62+ | PostgreSQL | 5432 | 172.10.10.21 |
63+
5064### Docker Compose (`docker-compose.yml`)
5165
5266I have prepared docker configuration file for you. You can [download it here](https://github.com/dockette/devstack/blob/master/docker-compose.yml).
@@ -102,10 +116,32 @@ Phpmailer store all mails send via `mail()` function to `/srv/mail` folder by de
102116
103117MariaDB's default root password is ` root ` . You should change it.
104118
119+ You have to setup in you application/configs propel ` host ` which is ` mariadb ` .
120+
121+ MariaDB container has predefined IP address ` 172.10.10.20 ` .
122+
123+ ```
124+ 172.10.10.20 mariadb
125+ ```
126+
105127### PostgreSQL
106128
107129PostgreSQL's default root password is ` root ` . You should change it.
108130
131+ You have to setup in you application/configs propel ` host ` which is ` postgresql ` .
132+
133+ PostgreSQL container has predefined IP address ` 172.10.10.21 ` . You could update your ` /etc/hosts ` .
134+
135+ ```
136+ 172.10.10.21 postgresql
137+ ```
138+
139+ ### Adminer
140+
141+ Adminer is great tool for managing database. Dockette devstack runs ` Adminer ` on port ` 8000 ` .
142+
143+ See more on documentation at https://github.com/dockette/adminer .
144+
109145## Hosts
110146
111147By default is devstack available on domains:
@@ -121,12 +157,27 @@ By default is devstack available on domains:
121157You should add these lines to your ` /etc/hosts ` file.
122158
123159```
160+ # Devstack [webserver]
124161127.0.0.1 local.dev
125162127.0.0.1 www.local.dev
126163127.0.0.1 local.dev7
127164127.0.0.1 www.local.dev7
128165127.0.0.1 local.dev56
129166127.0.0.1 www.local.dev56
167+
168+ # Devstack [DB]
169+ 172.10.10.20 mariadb
170+ 172.10.10.21 postgresql
171+ ```
172+
173+ Give a try!
174+
175+ ```
176+ ping local.dev
177+ ping local.dev56
178+ ping local.dev7
179+ ping mariadb
180+ ping postgresql
130181```
131182
132183-----
0 commit comments