Sure, but to what? From outside the container, the permissions are both correct and also howling nonsense.
Source (functioning):
root@ip-[...]:/var/discourse/shared/standalone# ls
total 54492
drwxr-xr-x 15 root root 4096 Oct 22 2021 .
drwxr-xr-x 3 root root 4096 Feb 28 2017 ..
drwxr-xr-x 3 ubuntu www-data 4096 Feb 28 2017 backups
-rw-r--r-- 1 root root 55730645 Mar 15 2017 discussion.json
drwx------ 7 root root 4096 Mar 6 2017 letsencrypt
drwxr-xr-x 4 root root 4096 Feb 28 2017 log
drwxr-xr-x 2 _apt netdev 4096 Feb 28 2017 postgres_backup
drwx------ 19 _apt netdev 4096 Sep 15 04:39 postgres_data
drwx------ 20 _apt netdev 4096 Oct 22 2021 postgres_data_old
drwx------ 20 messagebus uuidd 4096 Apr 5 2018 postgres_data_older
drwxrwsr-x 5 _apt netdev 4096 Sep 15 04:39 postgres_run
drwxr-xr-x 2 lxd lxd 4096 Sep 16 01:03 redis_data
drwxr-xr-x 2 root root 4096 Mar 6 2017 ssl
drwxr-xr-x 4 root root 4096 Feb 28 2017 state
drwxr-xr-x 4 ubuntu www-data 4096 Sep 15 04:39 tmp
drwxr-xr-x 5 ubuntu www-data 4096 Apr 13 2017 uploads
Destination (broken):
root@ip-[...]:/var/discourse/shared/standalone# ls -al
total 54488
drwxr-xr-x 15 root root 4096 Sep 15 04:31 .
drwxr-xr-x 3 root root 4096 Sep 15 04:27 ..
drwxr-xr-x 3 ubuntu www-data 4096 Sep 15 04:27 backups
-rw-r--r-- 1 root root 55730645 Sep 15 04:27 discussion.json
drwx------ 7 root root 4096 Sep 15 04:27 letsencrypt
drwxr-xr-x 4 root root 4096 Sep 15 04:27 log
drwxr-xr-x 2 _apt netdev 4096 Sep 15 04:27 postgres_backup
drwx------ 19 _apt netdev 4096 Sep 15 04:27 postgres_data
drwx------ 20 _apt netdev 4096 Sep 15 04:30 postgres_data_old
drwx------ 20 messagebus uuidd 4096 Sep 15 04:31 postgres_data_older
drwxrwsr-x 5 messagebus tss 4096 Sep 15 04:31 postgres_run
drwxr-xr-x 2 uuidd _ssh 4096 Sep 15 04:38 redis_data
drwxr-xr-x 2 root root 4096 Sep 15 04:32 ssl
drwxr-xr-x 4 root root 4096 Sep 15 04:31 state
drwxr-xr-x 4 ubuntu www-data 4096 Sep 15 04:31 tmp
drwxr-xr-x 5 ubuntu www-data 4096 Sep 15 04:31 uploads
I’m assuming that these IDs might make more sense inside the container, maybe?