You’re missing the use_s3 setting that’s recommended on the topic you linked.
You should copy paste those settings from the topic you linked rather than trying to type them. You need colon not equal.
If you’re seeing stuff at /var/www/discourse you’re inside the container. You need to exit to get back to the os.