Logs
Container logs (live)
Section titled “Container logs (live)”cd ~/.deepsql/self-host
# Tail all servicesdocker compose -p deepsql-selfhost logs -f
# A specific servicedocker compose -p deepsql-selfhost logs -f backenddocker compose -p deepsql-selfhost logs -f frontenddocker compose -p deepsql-selfhost logs -f postgresdocker compose -p deepsql-selfhost logs -f valkeyInstaller log (CloudFormation only)
Section titled “Installer log (CloudFormation only)”When the installer runs via UserData on the EC2 instance, its full output is captured to:
/var/log/deepsql-install.logTo read it:
aws ssm start-session --region <region> --target <instance-id># then on the instance:sudo less /var/log/deepsql-install.logPersistent log storage
Section titled “Persistent log storage”The Docker containers do not write to disk by default — logs are kept by the Docker daemon and rotated according to its log-opts. For long-term retention, ship logs to CloudWatch or another aggregator:
# Example: enable the awslogs Docker driver per-service in docker-compose.ymlservices: backend: logging: driver: awslogs options: awslogs-region: us-east-2 awslogs-group: /deepsql/backend awslogs-create-group: "true"(This is not enabled by default — opt in if you need it.)