# Docker upgrade: got stuck

**URL:** https://forum.mattermost.com/t/docker-upgrade-got-stuck/16871
**Category:** Troubleshooting
**Created:** [September 18, 2023, 9:00am UTC](https://forum.mattermost.com/t/docker-upgrade-got-stuck/16871 "2023-09-18T09:00:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rjalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rjalex/32/7580_2.png) [@rjalex](https://forum.mattermost.com/u/rjalex)
#### Post date: [September 18, 2023, 9:00am UTC](https://forum.mattermost.com/t/docker-upgrade-got-stuck/16871/1 "2023-09-18T09:00:40Z")

</div>

Fresh docker 7.8.8 install. All good. Upgraded to 8.1. Service unavailable

New install 7.8.8 working well. Changed .env with

```auto
MATTERMOST_IMAGE=mattermost-enterprise-edition
MATTERMOST_IMAGE_TAG=8.1

```

```auto
docker compose down
docker compose up -d

```

now get “SERVICE UNAVAILABLE”  
docker logs of running container show continuous repeats of:

```auto
{"timestamp":"2023-09-18 10:58:45.299 +02:00","level":"debug","msg":"Worker received a new candidate job.","caller":"resend_invitation_email/worker.go:67","worker":"resend_invitation_email"}
{"timestamp":"2023-09-18 10:59:00.300 +02:00","level":"debug","msg":"Worker received a new candidate job.","caller":"resend_invitation_email/worker.go:67","worker":"resend_invitation_email"}
{"timestamp":"2023-09-18 10:59:02.275 +02:00","level":"debug","msg":"Received HTTP request","caller":"web/handlers.go:163","method":"GET","url":"/api/v4/system/ping","request_id":"izwrqgw4cpgxtezpr8gnap9sue","status_code":"200"}

```

docker ps shows:

```auto
97fa5a337379 mattermost/mattermost-enterprise-edition:8.1 "/entrypoint.sh matt…" 13 minutes ago Up 13 minutes (healthy) 8065/tcp, 8067/tcp, 8074-8075/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:8443->8443/udp, :::8443->8443/tcp, :::8443->8443/udp docker-mattermost-1
42f96ab38747 postgres:13-alpine "docker-entrypoint.s…" 13 minutes ago Up 13 minutes 5432/tcp docker-postgres-1

```

---

<div class="post-metadata">

### Author: ![rjalex](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/rjalex/32/7580_2.png) [@rjalex](https://forum.mattermost.com/u/rjalex)
#### Post date: [September 18, 2023, 11:27am UTC](https://forum.mattermost.com/t/docker-upgrade-got-stuck/16871/2 "2023-09-18T11:27:43Z")

</div>

Got it 🙂 I am running the docker behind an hosted Apache2 proxy which routes 80/443 to the 8065 address … needed to expose this ALSO in the docker-compose.yml file.

Not sure I understand how come it did work in the 7.8.8 container though ???

---

<div class="post-metadata">

### Author: ![john.combs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/john.combs/32/7118_2.png) [@john.combs](https://forum.mattermost.com/u/john.combs)
#### Post date: [September 20, 2023, 12:38am UTC](https://forum.mattermost.com/t/docker-upgrade-got-stuck/16871/3 "2023-09-20T00:38:30Z")

</div>

Woo hoo! Thanks for following up, Robert. It’s great to hear that you were able to identify the issue and resolve it by exposing the appropriate ports in the `docker-compose.yml` file. Regarding your question about why it worked in the 7.8.8 container, it’s possible that the previous version had a different configuration or default settings that allowed it to work without explicitly exposing the ports in the `docker-compose.yml` file? I have to say though, I’m not entirely sure.

If you have any more questions or need further assistance, feel free to ask!
