# Syntax error volumes

**URL:** <https://community.okteto.com/t/syntax-error-volumes/162>\
**Category:** Not sure?\
**Created:** [July 19, 2022, 3:04pm UTC](https://community.okteto.com/t/syntax-error-volumes/162 "2022-07-19T15:04:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skynet-cloud](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/skynet-cloud/32/106_2.png) [@skynet-cloud](https://community.okteto.com/u/skynet-cloud)\
**Post date:** [July 19, 2022, 3:04pm UTC](https://community.okteto.com/t/syntax-error-volumes/162/1 "2022-07-19T15:04:20Z")

</div>

I cant deploy what worng  
`Unmarshalling compose...`  
`x Syntax error volumes should be 'local_path:remote_path' or 'remote_path'`

```auto
version: "3.3"
services:
  nginx:
    image: jwilder/nginx-proxy
    networks:
      - flowforge 
    restart: always
    volumes:
      - "/var/run/docker.sock:/tmp/docker.sock:ro"
    ports:
      - "80:80"
      # - "443:443"
  postgres:
    image: postgres
    networks: 
      - flowforge
    restart: always
    environment:
      POSTGRES_PASSWORD: secret
      POSTGRES_USER: root
    volumes:
      - "./db:/var/lib/postgresql/data"
      - "./setup-db.sh:/docker-entrypoint-initdb.d/setup-db.sh"
  forge:
    build:
      context: "./flowforge-docker"
    image: "flowforge/forge-docker"
    networks: 
      - flowforge
    restart: always
    environment:
      - "VIRTUAL_HOST=forge.example.com"
    volumes:
      - "/var/run/docker.sock:/tmp/docker.sock"
      - "./etc/flowforge.yml:/usr/src/forge/etc/flowforge.yml"
    depends_on:
      - "postgres"
      - "nginx"

networks:
  flowforge:

```

---

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/ramiro/32/6_2.png) [@ramiro](https://community.okteto.com/u/ramiro)\
**Post date:** [July 21, 2022, 4:42am UTC](https://community.okteto.com/t/syntax-error-volumes/162/2 "2022-07-21T04:42:28Z")

</div>

Okteto doesn’t support mounting the docker socket. The volume key can only be used for file directories.

[Docker Compose Reference | Okteto Documentation](https://www.okteto.com/docs/reference/compose/#volumes-string-optional) has more information on the formats supported.
