Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

316
Vistas
Using GPU on docker compose

I have a docker compose file that consists of nginx and flask app(runnning tensorflow). Something like this:

version: '3.7'

services:
    ...
    flask:
      expose:
        - 6006
#      deploy:
#        resources:
#          limits:
#            gpus: all

    nginx:
      ...
      restart: always
      ports:
        - "6006:80"
     ...

It's working fine but i wanted to use gpu resources for my flask app. i can run the flask app (docker-container) with gpu, by using the --gpu flag, but this is separate from the nginx container.

Currently, it is not supported for compose 3.7. Issue in github.

Question: What's the best workaround for running my app? downgrade docker-compose? Can i combine the nginx and flask in same container?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda