I just answered that this morning :-)
Link to the answer (it talks about php-fpm and nginx, but the concept is the same for apache of course): https://stackoverflow.com/a/19997381/227887
Long story short, you want to use container linking, a new feature as of 0.6.5 that permits to expose a port from a container to another.
See also the official docker documentation : http://docs.docker.io/en/latest/examples/linking_into_redis/