docker compose volumes contains invalid type

1,680 views
Skip to first unread message

Roma Koval

unread,
Dec 27, 2018, 10:56:48 AM12/27/18
to elkarbac...@googlegroups.com
Hello, 

I am trying to use this compose file:

version: '3'

services:
  elkarbackup:
    image: elkarbackup/elkarbackup:1.3.1-apache
    environment:
      SYMFONY__DATABASE__PASSWORD: "password"
      EB_CRON: "enabled"
      volumes:
      - backups:/app/backups
      - uploads:/app/uploads
      - sshkeys:/app/.ssh
    ports:
      - 8000:80

  db:
    image: mysql:5.7.22
    environment:
      MYSQL_ROOT_PASSWORD: "password"
    volumes:
      - db:/var/lib/mysql

  client:
    image: elkarbackup/client

volumes:
  db:
  backups:
  uploads:
  sshkeys:

And got this error 
services.elkarbackup.environment.volumes contains ["backups:/app/backups", "uploads:/app/uploads", "sshkeys:/app/.ssh"], which is an invalid type, it should be a string, number, or a null

Can someone help me please? 




Roma Koval

unread,
Dec 27, 2018, 11:36:12 AM12/27/18
to elkarbac...@googlegroups.com
I found mistake. 

Here is yaml code 


Section with "volumes" should to be up on one level.



     
Screenshot_360.png
Screenshot_361.png

张亮

unread,
Mar 31, 2022, 8:35:11 AM3/31/22
to elkarbackup-users
Dear bro
                I also encountered this problem, but the picture below you can't load due to network restrictions, can you describe it in text, thank you~

Reply all
Reply to author
Forward
0 new messages