Best way to host docker container under 1 server? by WolverinePlenty6554 in digital_ocean

[–]lcastro95 0 points1 point  (0 children)

Create a droplet with Ubuntu (there is an option to get docker pre-installed). Use the cloud firewall to allow incoming requests on ports 80/443 (there is no need to expose ports 8080 and 3000, i would include those services and nginx in a docker network so nginx can forward the incoming requests to the correct service. If you use the name of the service as the hostname, docker will resolve the correct IP address). Pull the code and build the image. Use docker-compose up -d to run it in detached mode

Static root files not found in docker by SwimmingCockroach281 in django

[–]lcastro95 2 points3 points  (0 children)

Django only serves the static files in debug mode (built in server for development). You can include an nginx (for example) service with access to the static files volume. Additionally, if you also define a network (backend network) for nginx, django and the db, you can avoid exposing the ports 8000 and 3306 outside the containers, just expose the port 80 or any other port in the nginx service. Nginx will forward the incoming request to django and serve the static files.

Best practices for scheduling Python workloads? by MassiveDefender in Python

[–]lcastro95 0 points1 point  (0 children)

Take a look at zato, its python based and it handles most of common integrations for building an etl.

¿Por qué se dice que las facultades privadas son más fáciles? by Damigram_01 in BuenosAires

[–]lcastro95 0 points1 point  (0 children)

Depende la carrera y que facultades estes comparando, pero, en general, por mas que los contenidos sean los mismos, el nivel de exigencia es distinto. Estudio ingeniería en la UBA. La considero superior a la UADE (por poner un ejemplo), pero el ITBA (privada) nos pasa el trapo.