# Docker Portainer installation

**URL:** <https://farmos.discourse.group/t/docker-portainer-installation/2588>\
**Category:** Hosting farmOS\
**Tags:** support-request\
**Created:** [August 19, 2026, 9:37pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588 "2026-08-19T21:37:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bmoeller](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bmoeller](https://farmos.discourse.group/u/Bmoeller)\
**Post date:** [August 19, 2026, 9:37pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588/1 "2026-08-19T21:37:49Z")

</div>

Hi,

might be a basic question, but Im not that familiar with hosting. I tried installing farmos with portainer on my server in my home network, using the yml example with some minor modifications regarding the volumes. Get the containers running, but when I try to access the website from my pc, I get an 403 error. The logs of the farmos-www-1 container show the following error:

```auto
[Wed Aug 19 21:30:45.685040 2026] [autoindex:error] [pid 19:tid 19] [client 192.168.170.62:33796] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive

192.168.170.62 - - [19/Aug/2026:21:30:45 +0000] "GET / HTTP/1.1" 403 535 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"

```

Some time ago I had farmos up and running, maybe someone can help me.

Thanks in advance

Bennet

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [August 20, 2026, 1:58pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588/2 "2026-08-20T13:58:12Z")

</div>

Hi @Bmoeller - welcome to the forum! 👋

> [@Bmoeller](#):
>
> using the yml example with some minor modifications regarding the volumes

Can you share your Docker configuration? Maybe the volume modifications are causing it.

Does it work if you do not use any volumes? As a simple test…

---

<div class="post-metadata">

**Author:** ![Bmoeller](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bmoeller](https://farmos.discourse.group/u/Bmoeller)\
**Post date:** [August 20, 2026, 6:08pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588/3 "2026-08-20T18:08:51Z")

</div>

```auto
services:
  db:
    image: postgres:17
    volumes:
      - /media/fstab/hdd1/docker/volume1/farmos/db/db:/var/lib/postgresql/data
    ports:
      - '5432:5432'
    environment:
      POSTGRES_USER: farm
      POSTGRES_PASSWORD: farm
      POSTGRES_DB: farm

  www:
    depends_on:
      - db
    image: farmos/farmos:4.0.4
    volumes:
      - /media/fstab/hdd1/docker/volume1/farmos/www:/opt/drupal
      - /media/fstab/hdd1/docker/volume1/farmos/sites:/opt/drupal/web/sites
      - /media/fstab/hdd1/docker/volume1/farmos/keys:/opt/drupal/keys
    ports:
      - '85:80'
    restart: always

```

without the volumes it works fine, thats great. Can you show me how to use the folders I want to use?

path ist /media/fstab/hdd1/docker/volume1/farmos

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [August 20, 2026, 6:24pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588/4 "2026-08-20T18:24:38Z")

</div>

Ah, my guess is that the first volume is the issue…

Try removing this line:

` - /media/fstab/hdd1/docker/volume1/farmos/www:/opt/drupal`

The only directories you need to mount are `/opt/drupal/web/sites` and `/opt/drupal/keys`.

Unless you are building your own custom codebase with additional modules… in which case see [Building farmOS with Com](https://farmos.org/hosting/composer/)

---

<div class="post-metadata">

**Author:** ![Bmoeller](https://avatars.discourse-cdn.com/v4/letter/b/a587f6/32.png) [@Bmoeller](https://farmos.discourse.group/u/Bmoeller)\
**Post date:** [August 20, 2026, 6:26pm UTC](https://farmos.discourse.group/t/docker-portainer-installation/2588/5 "2026-08-20T18:26:41Z")

</div>

Thank a lot, that seems to work for now. Im just trying it out, dont know what additional modules I will need.
