diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-10-21 22:00:56 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-10-21 22:00:56 -0300 |
commit | 3de1734a4bda9300bd0d7daa508c3b276162d6cc (patch) | |
tree | 8714197be95d4c658d7cd6214438a8a4c04e8633 /content/advanced/add-your-own-containers.md | |
parent | 548050c6ff331b097544b4b58d7607b49050c87f (diff) |
Added "adding your own containers" documentation
Diffstat (limited to 'content/advanced/add-your-own-containers.md')
-rw-r--r-- | content/advanced/add-your-own-containers.md | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/content/advanced/add-your-own-containers.md b/content/advanced/add-your-own-containers.md new file mode 100644 index 0000000..d59c412 --- /dev/null +++ b/content/advanced/add-your-own-containers.md @@ -0,0 +1,72 @@ +--- +title: "Adding your own containers to YAMS" +date: 2023-10-21T21:41:29-03:00 +draft: false +weight: 1 +summary: Instructions on how to add your own Docker containers to YAMS. +--- + +Adding your own containers in YAMS is very easy. + +First, go to your install location. For the purposes of this tutorial, I'll use `/opt/yams`. + +```bash +cd /opt/yams +``` + +If you `ls`, you'll see 2 files: +- `docker-compose.yaml`: This is YAMS. You shouldn't mess with this file manually. +- `docker-compose.custom.yaml`: Here's where you'll add your containers. Any container you add here will be automatically added to the YAMS network and will be able to communicate locally with YAMS. + +To add your containers, you'll have a few environment variables available: + +- `PUID`: Your PUID. +- `PGID`: Your PGID. +- `MEDIA_DIRECTORY`: Your media directory. +- `INSTALL_LOCATION`: Your install location. + +# Adding a container + +As an example, I'll add [Overseerr](https://overseerr.dev/). + +Open `docker-compose.custom.yaml` and add the following information: + +```yaml +version: "3" + +services: # -> Uncomment this line! (remove the "#" in front of it) + +# Add your container here 👇 + overseerr: + image: lscr.io/linuxserver/overseerr:latest + container_name: overseerr + environment: + - PUID=${PUID} # Note how I'm using the env variables here + - PGID=${PGID} # Note how I'm using the env variables here + volumes: + - ${INSTALL_LOCATION}/config/overseer:/config # Note how I'm using the env variables here + ports: + - 5055:5055 + restart: unless-stopped +``` + +To start the container, run: + +```bash +yams restart +``` + +If everything is okay, you should see Overseer installing: + +```bash + ⠙ overseerr Pulling 5.2s + + + ... +``` + +And that's it! + +You can find new containers here: +- https://fleet.linuxserver.io/ (recommended). +- https://hub.docker.com/. |