I wanted to check how to turn debug logging on for them? Is there an environment variable I could pass in to enable that?
For the services which are based upon spring boot e.g. 'alfresco-transform-core-aio', you can set debug log level via docker compose. But you can't do that for acs/share. I am afraid that this is not an option available via docker compose for acs/share.
example of spring boot based apps:
If you are using enterprise version, you have an option in admin console to set/enable/disable log settings (these settings are not presisted and on restart any setting done via admin console will be lost) found under support-tools.
You seems to be using community version, and support-tools is not by default available for this version. You can use this add-on : https://github.com/OrderOfTheBee/ootbee-support-tools to get the similar options.
You would have to apply the amps on both alfresco and share war file deployed under the containers. However, if you terminate the containers all these additions will be lost.
The best option would be to use DockerFile in combination with docker-compose and build the image with any add-ons/extensions, custom log4j etc.
Here is an example of DockerFile usage in docker-compose:
You can also take a look at this thread on how to copy/apply extensions via dockerfile:
Additonally, if you wish to connect to the containers, you can do it using below given command and update the log levels as usual you do on any linux sever where acs is deployed.
Connect to a container:
docker exec -i -t <container_Name/id> /bin/bash
docker exec -it docker_alfresco_1 /bin/bash
(ACSCE, AWS SAA, Azure Admin)