I do not have nginx for the moment, I just follow KM0201 tuto.
Here is the stack :
| version: "2.1" |
| services: |
| nextcloud: |
| image: ghcr.io/linuxserver/nextcloud:latest |
| container_name: nextcloud |
| ##network_mode: swag_default |
| environment: |
| - PUID=998 |
| - PGID=100 |
| volumes: |
| - /srv/dev-disk-by-uuid-0d45c8f5-06ad-448b-b231-fddefcac8735/config/nextcloud/config:/config |
| - /srv/dev-disk-by-uuid-0d45c8f5-06ad-448b-b231-fddefcac8735/config/nextcloud/data:/data |
| - /etc/localtime:/etc/localtime:ro |
| depends_on: |
| - mariadb |
| ports: |
| - 450:443 |
| restart: unless-stopped |
| mariadb: |
| image: ghcr.io/linuxserver/mariadb:latest |
| container_name: nextclouddb |
| ##network_mode: swag_default |
| environment: |
| - PUID=998 |
| - PGID=100 |
| - MYSQL_ROOT_PASSWORD=XXXXX |
| volumes: |
| - /srv/dev-disk-by-uuid-0d45c8f5-06ad-448b-b231-fddefcac8735/config/nextclouddb:/config |
| - /etc/localtime:/etc/localtime:ro |
| restart: unless-stopped |