Docker-sync: Use volume or volume_from

Created on 16 Aug 2017  路  12Comments  路  Source: EugenMayer/docker-sync

I can't find which one to use in the wiki. The online tutorials have conflicting info. Some say to use volume and some say to use volume_from.

Wouldn't I use volume_from because docker-sync actually creates the volume.

web:
    build: .
    environment:
      - db_host=db
      - db_port=5432
      - elasticsearch_host=elasticsearch:9200
    command: bin/rails server --port 3000 --binding 0.0.0.0
    ports:
      - "3000:3000"
    volumes:
    # jobfrienderwebsync is on docker-sync
    # /var/www/jobfriender is on the docker web container
      - jobfrienderwebsync:/var/www/jobfriender:nocopy
    links:
      - redis
      - db
      - elasticsearch

Most helpful comment

The internet is a funny place.

All 12 comments

the app_sync directory is updating on the sync container. But my web server isn't getting updated with latest changes.

Please post in a readable fashion, thanks. It's volumes. Where are the conflicting docs? Thanks

Those are obviously not official docs, which you could have at least consulted once :)

I am following your official docs and it's not working. So I tried to find other tutorials.

Why did you close the issue?

I answered your question. Beside that you did for sure not read the configugration docs any closely neither picked up the hint to look at the boilerplate.

You need to work on your social and communication skills if you want people to use and contribute to your project.

I take it into account. I usually treat ignorance with ignorance, that's one of my habits for sure.

Ok. I will look for something else to use. I'm not using your project.

The internet is a funny place.

rsync was not installed on the web container. problem solved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brucemead picture brucemead  路  3Comments

Nomafin picture Nomafin  路  5Comments

b1alpha picture b1alpha  路  7Comments

barat picture barat  路  8Comments

gagarine picture gagarine  路  6Comments