# Can't get mailgun to work with docker

**URL:** <https://forum.ghost.org/t/cant-get-mailgun-to-work-with-docker/7266>\
**Category:** Installation\
**Created:** [May 12, 2019, 11:56pm UTC](https://forum.ghost.org/t/cant-get-mailgun-to-work-with-docker/7266 "2019-05-12T23:56:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chovy](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/chovy/32/3377_2.png) [@chovy](https://forum.ghost.org/u/chovy)\
**Post date:** [May 12, 2019, 11:56pm UTC](https://forum.ghost.org/t/cant-get-mailgun-to-work-with-docker/7266/1 "2019-05-12T23:56:26Z")

</div>

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

- What’s your URL? [http://thedailyshitter.com](http://thedailyshitter.com)
- What version of Ghost are you using? 2.22.0
- What configuration? Mailgun
- What browser? Chrome
- What errors or information do you see in the console? Using docker, can’t connect to mailgun
- What steps could someone else take to reproduce the issue you’re having?  
Please provide instructions for connection ghost:alpine-2 docker image to mailgun. Nothing i tried workds

Nothing seems to work.

```auto
    environment:
      url: https://thedailyshitter.com
      mail__transport: SMTP
      mail __options__ service: Mailgun
      mail __options__ auth__user: postmaster@mg.thedailyshitter.com
      mail __options__ auth__pass: xxxx

```

This is in my docker-compose.yml file but i still can’t send emails.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [May 26, 2019, 11:56pm UTC](https://forum.ghost.org/t/cant-get-mailgun-to-work-with-docker/7266/2 "2019-05-26T23:56:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
