You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ui.docker | Included as fallback, if `SHARED_DOMAIN_SEGMENT` was left blank. |
171
-
| router.docker | Included as fallback, if `SHARED_DOMAIN_SEGMENT` was left blank. |
172
-
| pg-admin.docker | Included as fallback, if `SHARED_DOMAIN_SEGMENT` was left blank. |
173
-
|*.wod.docker | All subdomains under this wildcard. **Only one level of nesting **will work in most of the browsers****. |
174
-
|*.tpl.wod.docker | For default template, generated from [laravel-starter-tpl](https://github.com/wayofdev/laravel-starter-tpl)|
175
-
176
-
<br>
134
+
7.**Run this project:**
177
135
178
-
### → Finishing
179
-
180
-
1. Install root certificate into system and generate default certs:
181
-
182
-
```bash
183
-
make cert-install
184
-
```
185
-
186
-
2. (Optional) Enable docker-compose.override file to run extra services, like pg-admin and others:
187
-
188
-
```bash
189
-
make override
190
-
```
191
-
192
-
3. Run this repository:
136
+
Start the Docker services defined in the repository.
193
137
194
138
```bash
195
139
make up
196
140
```
197
141
198
-
4.Check that everything works:
142
+
8.**Check that all Docker services are running:**
199
143
200
144
```bash
201
145
make ps
202
146
make logs
203
147
```
204
148
205
-
<br>
206
-
207
-
### → Outcome
149
+
9.**Ping `router.docker` to check if DNS is working:**
208
150
209
-
Services will be running under shared docker network, called `ss_shared_network` and all microservices, that will share same network, will be visible for Traefik, and local DNS, served by dnsmasq, will be available.
151
+
Ensure that the DNS setup is functioning correctly.
**Portrainer** — <https://ui.wod.docker> or <https://ui.docker>
159
+
Open [https://router.docker](https://router.docker)
216
160
217
-
**Pg-admin** (if `docker-compose.override.yaml` was enabled) — <https://pg-admin.wod.docker> or <https://pg-admin.docker>
161
+
At this point, you should have a working local development environment with DNS and SSL support for your projects.
218
162
219
163
<br>
220
164
221
-
## 🧪 Testing
222
-
223
-
You can check `Makefile` to get full list of commands for local testing. For testing, you can use these commands to test whole role or separate tasks:
224
-
225
-
Testing docker-compose using `dcgoss`:
165
+
## ⚡️ Connecting your Projects to Shared Services
166
+
167
+
To connect your projects to the shared services, configure your project's `docker-compose.yaml` file to connect to the shared network and Traefik.
168
+
169
+
For a quick example, you can check this [Laravel Starter Template](https://github.com/wayofdev/laravel-starter-tpl) repository's [docker-compose.yaml](https://github.com/wayofdev/laravel-starter-tpl/blob/develop/docker-compose.yaml) file, which includes a sample configuration for a Laravel project.
170
+
171
+
### → Sample Configuration
172
+
173
+
Your project should use the shared Docker network `network.ss` and Traefik labels to expose services to the outside world.
0 commit comments