compose.yaml 491 B

12345678910111213141516171819202122
  1. services:
  2. web:
  3. image: nginx
  4. volumes:
  5. - ./nginx/nginx.conf:/tmp/nginx.conf
  6. environment:
  7. - FLASK_SERVER_ADDR=backend:9091
  8. command: /bin/bash -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
  9. ports:
  10. - 80:80
  11. depends_on:
  12. - backend
  13. backend:
  14. build: flask
  15. environment:
  16. - FLASK_SERVER_PORT=9091
  17. volumes:
  18. - ./flask:/src
  19. depends_on:
  20. - mongo
  21. mongo:
  22. image: mongo