Docker Compose Setup
- https://mklasen.com/adding-and-using-wp-cli-in-a-docker-compose-setup/
- set wordpress container user as host user:group,
$(id -u):$(id -g)
, e.g. 1000:1000 - ssh into wp container as root
docker-compose exec -u 0 wordpress bash
- create user with host uid:gid
useradd -G www-data,root -u $uid -d /home/$user $user
- might need to change folder owner
chown -R $user:$user /home/$user