Container Manager Error Code 1 - gitea install

New user to this site, Synology NAS and Docker. Fingers crossed, someone is able to assist with my dilemma. I am attempting to create a gitea Docker instance via Container Manager. Unfortunately, I received the following error during the build process:

Error response from daemon: bind mount failed: ‘/volume1/docker/mysql’ do Exit Code: 1

My gitea YAML file is as follows:

version: “3”

networks:
gitea:
external: false

services:
server:
image: gitea/gitea:latest
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=db:3306
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD=gitea
restart: always
networks:
- gitea
volumes:
- /volume1/docker/gitea:/data

ports:
  - "3030:3000"
  - "2222:22"
depends_on:
  - db

db:
image: mysql:8
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=gitea
- MYSQL_DATABASE=gitea
networks:
- gitea
volumes:
- /volume1/docker/mysql:/var/lib/mysql

Thank you for taking the time to review this topic.

On closer examination of the Docker compose file, I neglected to include the gitea directory in the path i.e.,

  • /volume1/docker/mysql/gitea:/var/lib/mysql

Gitea is now up andrunnng.

My error.