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
Copy file name to clipboardExpand all lines: _posts/2024-07-08-ai-stack-tutorial.md
+259-1Lines changed: 259 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -263,6 +263,30 @@ docker compose up -d --build
263
263
264
264
There are additional steps you'll need to do before starting this stack. Please continue on to the end.
265
265
266
+
Here are 2 Docker compose files that you can use on your system.
267
+
268
+
### My Docker Compose Stack
269
+
270
+
The stack is the one I use in the video as well as at home. If you want to use the general stack without traefik and macvlan, see [the general Docker compose stack](#general-docker-compose-stack)
271
+
272
+
Before running this, you will need to create the network for Docker to use.
273
+
274
+
This might already exist if you are using traefik. If so skip this step.
275
+
276
+
```bash
277
+
docker network create traefik
278
+
```
279
+
280
+
This will create the `macvlan` network. Adjust accordingly.
281
+
282
+
```bash
283
+
docker network create -d macvlan \
284
+
--subnet=192.168.20.0/24 \
285
+
--gateway=192.168.20.1 \
286
+
-o parent=eth1 \
287
+
iot_macvlan
288
+
```
289
+
266
290
`compose.yaml`
267
291
268
292
```yaml
@@ -498,6 +522,222 @@ networks:
498
522
external: true
499
523
```
500
524
525
+
### General Docker Compose Stack
526
+
527
+
This Docker compose stack does not use traefik and also exposes the port on the host for each service. If you don't want to expose the port, comment that section out. If you want to use the stack with traefik and macvlan, see the [stack I used in the video](#ai-stack-docker-compose)
528
+
529
+
Before running this, you will need to create the network for Docker to use.
0 commit comments