docker-compose.yml 361 B

12345678910111213141516171819
  1. version: '2'
  2. services:
  3. myapp:
  4. image: "sampleapp"
  5. container_name: sampleapp
  6. # image: f080690e516f
  7. restart: always
  8. depends_on: [ mongodb ]
  9. environment:
  10. - DBHOST=mongodb
  11. ports:
  12. - 8080:8080
  13. mongodb:
  14. image: "mongo"
  15. container_name: sampleapp-mongodb
  16. restart: always
  17. #volumes:
  18. # - "./data/db:/data/db"