Question

How to pull down images to my newly created ubuntu Droplet?

I’m about to publish my asp.net web application to the Droplet that I’ve created. My application requires postgreSql and redis so I created a yml file to pull down those image for services. unfortunately, my docker-compose file seems incorrectly formatted. Can you please hcodeelp take a look and let me know any other way to pull down those services and get them running in my Droplet?

Thanks!

----my docker-compose file—

services:

  redis:
    image: redis:latest
    ports:
      - 6379:6379
    command: ["redis-server", "--appendonly", "yes"]
    volumes:
      - redis-data:/data

  redis-commander:
    image: rediscommander/redis-commander:latest
    environment:
      - REDIS_HOSTS=local:redis:6379
      - HTTP_USER=root
      - HTTP_PASSWORD=xxxxx
    ports:
      - 8081:8081
    depends_on:
      - redis

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: yyyyy
      POSTGRES_USER: zzzzz
    ports: 
      - 5432:5432

  adminer:
    image: adminer
    restart: always
    ports:
      - 8080:8080
    
volumes:
  redis-data:
Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @gdliu,

I see you’ve resolved the issue on your own, I’m glad about that!

Having said that, can you please post the solution here so that other people stumbling on the question and having a similar issue to see how you fixed it for you?

Thank you for that!