Add portfolio

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-13 23:33:13 +00:00
parent dc6cf7ca58
commit 9bdedf5ef9
51 changed files with 404 additions and 127 deletions

View File

@@ -73,14 +73,14 @@ $ docker run -d --name=portainer \
Here's a brief walkthrough of what each option does:
- `-d`: Run container in the background (detached)
- `--name=portainer`: The name of the container
- `-e PGID=1000 and -e PUID=1000`: Set environmental variables PGID and PUID to 1000 (your user id, run id to check it)
- `-p 8000:8000`: Expose port 8000 on the host and bind it to port 8000 in the container
- `-p 9000:9000`: Same as above
- `--restart=unless-stopped`: Automatically restart the container if it crashes or when the server boots
- `-v a:b`: Bind directory a on the host to directory b in the container
- `-v /var/run/docker.sock:/var/run/docker.sock`: Give Portainer access to the host's Docker socket
- `-d`: Run container in the background (detached)
- `--name=portainer`: The name of the container
- `-e PGID=1000 and -e PUID=1000`: Set environmental variables PGID and PUID to 1000 (your user id, run id to check it)
- `-p 8000:8000`: Expose port 8000 on the host and bind it to port 8000 in the container
- `-p 9000:9000`: Same as above
- `--restart=unless-stopped`: Automatically restart the container if it crashes or when the server boots
- `-v a:b`: Bind directory a on the host to directory b in the container
- `-v /var/run/docker.sock:/var/run/docker.sock`: Give Portainer access to the host's Docker socket
After running the command, you can access the web UI using a browser at `[local_server_ip]:9000`. In my case, that would be `192.168.1.254:9000`.
@@ -135,7 +135,7 @@ $ sudo setfacl -R -d -m g::rwx public
$ sudo setfacl -R -d -m o::rwx public
```
Next, open Portainer, go to the *stacks* tab, and add a new stack named `samba`. In the `docker-compose` field, paste the following, and modify it to your liking:
Next, open Portainer, go to the _stacks_ tab, and add a new stack named `samba`. In the `docker-compose` field, paste the following, and modify it to your liking:
```yaml
version: '3.9'
@@ -164,7 +164,7 @@ services:stacks*
tty: true
```
For more information on what each option does, you can check the project's [repository](https://github.com/dperson/samba#configuration). After you are satisfied with your settings, click *deploy the stack*, wait a couple of seconds, and try accessing your new file share from a different computer.
For more information on what each option does, you can check the project's [repository](https://github.com/dperson/samba#configuration). After you are satisfied with your settings, click _deploy the stack_, wait a couple of seconds, and try accessing your new file share from a different computer.
## Final Thoughts