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 h
codeelp take a look and let me know any other way to pull down those services and get them running in my Droplet?
----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:
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!