If you configured postfix as a local MTA it will only listen on local network devices. To make it accessible from your docker container add the docker0 interface to inet_interfaces in main.cf:
inet_interfaces = 127.0.0.1, [::1], 172.17.0.1
Since the docker interface is started when the docker service starts you have to make sure docker is started before postfix. With systemd you can do this by creating the file /etc/systemd/system/postfix.service.d/after-docker.conf with the content:
If you want to send outgoing mails with a destination other than the local system you can allow this by adding the docker subnet to mynetworks in main.cf:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 172.17.0.1/16
On 1. Sept. 2016 i held a talk about using Gitlab with the built in CI and Registry for an automated Docker workflow at the local Docker Bamberg Meetup.
- About Gitlab
- What is Gitlab?
- Community of Enterprise?
- Installation options
- Setup Gitlab environment
- Starting it up
- Setting up the Gitlab server
- Setting up the Runner
- Setup your personal user account
- Setup a project
- Create the project in gitlab
- Add a build job to the CI
- Run your Docker image
- Build versioned releases
Find the slides at:
On 28th April I held a talk about Test-Driven Infrastructure at the local Docker-Bamberg Meetup.
- Test-Driven Infrastructure
- Behavior-Driven Development
- Hands on
- Build a simple webserver for serving a Docker Bamberg weblog
- Continuous Integration, Monitoring, Documentation, Checklists, Change Evidence build in!
Slide are available at: