#!/bin/sh
set -e

# Start the TCP proxy in the background for "localhost" DB connection if needed
socat TCP-LISTEN:3306,fork TCP:db:3306 &

# Execute the original command for the container (start Apache)
apache2-foreground
