Testing for correct operation
Finally, we pull up all the services from docker-compose.yaml
to test whether the containers run and work with each other.
Caddy and Django
Caddy and Django are easy to check, as when you enter the hello.localhost
domain, you will see Django fully functioning with its welcome page:
Figure 2.1 – Django running under the hello.localhost domain
We know that Django has connected to PostgreSQL because we can see in the log how it has applied the migrations:
Running migrations: Applying contenttypes.0001_initial... OK Applying auth.0001_initial... OK Applying admin.0001_initial... OK Applying admin.0002_logentry_remove_auto_add... OK Applying admin.0003_logentry_add_action_flag_choices... OK Applying contenttypes.0002_remove_content_type_name... OK Applying auth.0002_alter_permission_name_max_length... OK ...
MailHog
MailHog is simple because when you enter the webmail.localhost
domain, you will see the web interface...