Question

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

Posted October 3, 2021 115 views
DockerCustom ImagesDigitalOcean Droplets

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:

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.

×
Submit an Answer
1 answer

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!