Hi,

I’m fairly new to docker and ran in an issue settig up Mealie using Portainer on my Synology. I’ve altered their documentation here to include a specific IP in my home network using macvlan but when deploying the stack I get the error:

"Deployment error

failed to deploy a stack: validating /data/compose/24/docker-compose.yml: services.mealie.networks.networks Additional property mvl is not allowed"

---
version: "3.7"
services:
  mealie:
    image: ghcr.io/mealie-recipes/mealie:v1.0.0-RC1.1
    container_name: mealie
    ports:
        - "9000:9000" # 
    networks:
      mvl:
        ipv4_address: 192.168.178.196
      networks:
        mvl:
          external: true
    deploy:
      resources:
        limits:
          memory: 2000M # 
    volumes:
      - mealie-data:/app/data/
    environment:
    # Set Backend ENV Variables Here
      - ALLOW_SIGNUP=true
      - PUID=1024
      - PGID=100
      - TZ=Europe/berlin
      - MAX_WORKERS=1
      - WEB_CONCURRENCY=1
      - BASE_URL=https://mealie.yourdomain.com
    restart: always

volumes:
  mealie-data:
    driver: local

Other stacks I’ve deployed hadn’t had an issue when adding the networks tab this way. What am I doing wrong? Thanks in advance

  • audero@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Your YAML is formatted incorrectly. Under volumes you have three spaces to indent the item - mealie-data:/app/data/ and it should be two. Same with all the items under environment.