docker-compose.yml 724 B

123456789101112131415161718192021222324252627
  1. version: '3'
  2. services:
  3. uwsgi:
  4. image: mantissoftware/encryption-service
  5. build:
  6. context: ./
  7. environment:
  8. - FLASK_DEBUG=0
  9. - UWSGI_HTTP_AUTO_CHUNKED=1
  10. - UWSGI_HTTP_KEEPALIVE=1
  11. - UWSGI_LAZY_APPS=1
  12. - UWSGI_WSGI_ENV_BEHAVIOR=holy
  13. - UWSGI_MASTER=1
  14. - UWSGI_WORKERS=2
  15. - UWSGI_THREADS=4
  16. - __SERVICE_AES_KEY=OzmJQHX2OwHGiCuX9Cvr9Q== # CHANGE THIS BEFORE DEPLOY
  17. - __SERVICE_AES_IV=q20P3ZpWh6DqeKzTpVJmpQ== # CHANGE THIS BEFORE DEPLOY
  18. - __SERVICE_ACTUATOR_BASE_URI=http://localhost/actuator
  19. nginx:
  20. image: nginx:1.13-alpine
  21. volumes:
  22. - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
  23. depends_on:
  24. - uwsgi
  25. ports:
  26. - 80:80