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:
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.