Hi, if you want to create a specific log eg. for the celery container, you can define a configuration file for it and add it to the runcommand: celery -A a_core worker --config=celeryconfig # celeryconfig.py worker_log_file = '/var/log/celery/worker.log' worker_log_level = 'INFO'
@@ajudmeister Love your video, man. It really saved my day from trying to figure out how to dockerize Django. Hope to see your RUclips channel go viral soon!
Railway is fast and cheap, but setting up Docker, environment variables, and start commands for each service individually was a bit tedious and laborious. What do you think about DigitalOcean or AWS, and how do you choose in your own real projects? By the way, I'll be honest, it was the best training I've ever seen.
@@caglargulucan tbh I have not tried it with DigitalOcean or AWS and they might be much better with deploying docker Images and automating multi container setups. I dunno. As you said, I like railway because it’s fast, cheap and I had no problems so far.
"Sometimes entrypoint_sh didn’t work on Windows OS. Instead, I used this command in the docker-compose_yml file services > app: sh -c 'python manage_py makemigrations && python manage_py migrate && python manage_py runserver 0.0.0.0:8000'. This approach worked."
Sorry for the delay on this video; I had a few (actually, more than a few) family matters to attend to. Trying to post a video regularly once a week.
It's all good, hope all is ok with you and your family!
You did well boss. You're the best.
very helpful as always ! thank you so much !
Excellent as Always, Bro
Thank you for this.
Awesome video. Looking for video for configuring log file in docker
Hi, if you want to create a specific log eg. for the celery container, you can define a configuration file for it and add it to the runcommand:
celery -A a_core worker --config=celeryconfig
# celeryconfig.py
worker_log_file = '/var/log/celery/worker.log'
worker_log_level = 'INFO'
@@ajudmeister
Love your video, man. It really saved my day from trying to figure out how to dockerize Django. Hope to see your RUclips channel go viral soon!
helpful. pls do DRF projects too.
I will cover this in a API series
thank
Railway is fast and cheap, but setting up Docker, environment variables, and start commands for each service individually was a bit tedious and laborious. What do you think about DigitalOcean or AWS, and how do you choose in your own real projects? By the way, I'll be honest, it was the best training I've ever seen.
@@caglargulucan tbh I have not tried it with DigitalOcean or AWS and they might be much better with deploying docker Images and automating multi container setups. I dunno. As you said, I like railway because it’s fast, cheap and I had no problems so far.
"Sometimes entrypoint_sh didn’t work on Windows OS. Instead, I used this command in the docker-compose_yml file services > app: sh -c 'python manage_py makemigrations && python manage_py migrate && python manage_py runserver 0.0.0.0:8000'. This approach worked."
Yes this works, or also the vertical pip symbol:
command: |
python manage.py makemigrations
python manage.py migrate
python manage.py runserver 0.0.0.0:8000