# \#docker-compose

**URL:** https://forum.elixirforum.com/tag/docker-compose/2779.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [How to connect elixir phoenix api with docker container?](https://forum.elixirforum.com/t/how-to-connect-elixir-phoenix-api-with-docker-container/68360)

<div class="topic-metadata">

**Author:** [@henriquesati](https://forum.elixirforum.com/u/henriquesati)\
**Replies:** 7\
**Last updated:** [December 28, 2024, 4:40pm UTC](https://forum.elixirforum.com/t/how-to-connect-elixir-phoenix-api-with-docker-container/68360 "2024-12-28T16:40:33Z")

</div>

I have a application that was running on windows communicating with posgres via postgres mappig localhost8080 to 5432 on postgres container altought now I need to run everything on linux container, and I cant get to co…

---

## [Using :dns\_cluster with docker-compose locally (it can be done)](https://forum.elixirforum.com/t/using-dns-cluster-with-docker-compose-locally-it-can-be-done/61336)

<div class="topic-metadata">

**Author:** [@slouchpie](https://forum.elixirforum.com/u/slouchpie)\
**Replies:** 13\
**Last updated:** [November 7, 2024, 3:52pm UTC](https://forum.elixirforum.com/t/using-dns-cluster-with-docker-compose-locally-it-can-be-done/61336 "2024-11-07T15:52:11Z")

</div>

Warmest greetings, comrades. I recently started using :dns\_cluster (GitHub - phoenixframework/dns\_cluster: Simple DNS clustering for distributed Elixir nodes · GitHub) in a couple of production projects which are deploy…

---

## [Dockerize\_elixir - quickly setup a docker dev environment in your project](https://forum.elixirforum.com/t/dockerize-elixir-quickly-setup-a-docker-dev-environment-in-your-project/65318)

<div class="topic-metadata">

**Author:** [@ericlathrop](https://forum.elixirforum.com/u/ericlathrop)\
**Replies:** 1\
**Last updated:** [September 26, 2024, 7:13pm UTC](https://forum.elixirforum.com/t/dockerize-elixir-quickly-setup-a-docker-dev-environment-in-your-project/65318 "2024-09-26T19:13:48Z")

</div>

When I spin up a new project, I always want a dev environment with a database and test runner. I’ve had a set of files I’ve copied from project to project over the years, but it’s manual and error prone. I’ve finally got…

---

## [Connecting to Postgres in docker-compose](https://forum.elixirforum.com/t/connecting-to-postgres-in-docker-compose/65974)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 19\
**Last updated:** [September 10, 2024, 9:38pm UTC](https://forum.elixirforum.com/t/connecting-to-postgres-in-docker-compose/65974 "2024-09-10T21:38:18Z")

</div>

Dumb question and one I used to know the answer to… but how does one connect to a postgres instance running inside docker-compose? I thought I would work through Broadway’s example repo GitHub - elixir-broadway/broadway…

---

## [Mix test runs locally, but not in Docker container](https://forum.elixirforum.com/t/mix-test-runs-locally-but-not-in-docker-container/62844)

<div class="topic-metadata">

**Author:** [@martins](https://forum.elixirforum.com/u/martins)\
**Replies:** 4\
**Last updated:** [September 5, 2024, 5:19am UTC](https://forum.elixirforum.com/t/mix-test-runs-locally-but-not-in-docker-container/62844 "2024-09-05T05:19:49Z")

</div>

Hi, I’m able to run my test from my terminal, but if I’m not able to run the tests from within a container. I get this error when I run docker compose up: test-1 | Compiling 50 files (.ex) test-1 | Generated easy\_so…

---

## [Requesting help for slow Docker application](https://forum.elixirforum.com/t/requesting-help-for-slow-docker-application/62560)

<div class="topic-metadata">

**Author:** [@afnan](https://forum.elixirforum.com/u/afnan)\
**Replies:** 2\
**Last updated:** [March 29, 2024, 12:26am UTC](https://forum.elixirforum.com/t/requesting-help-for-slow-docker-application/62560 "2024-03-29T00:26:24Z")

</div>

Hi Folks, I have started working on a project that was not built using docker. Its pheonix framework with liveview implementation. The problem is that in docker there are two problems, Auto reload does not work despit…

---

## [Why my final docker image didn’t find umbrella applications?](https://forum.elixirforum.com/t/why-my-final-docker-image-didn-t-find-umbrella-applications/59123)

<div class="topic-metadata">

**Author:** [@zoedsoupe](https://forum.elixirforum.com/u/zoedsoupe)\
**Replies:** 0\
**Last updated:** [October 19, 2023, 10:41pm UTC](https://forum.elixirforum.com/t/why-my-final-docker-image-didn-t-find-umbrella-applications/59123 "2023-10-19T22:41:02Z")

</div>

I build a Dockerfile as: FROM hexpm/elixir:1.15.7-erlang-26.1.2-alpine-3.17.5 AS releaser RUN apk add --no-cache build-base git python3 curl WORKDIR /app RUN mix do local.hex --force, local.rebar --force COPY config…

---

## [Deployment - Lost with what goes where. Base mix phx.new project using Docker-Compose with Postgres + Nginx on EC2](https://forum.elixirforum.com/t/deployment-lost-with-what-goes-where-base-mix-phx-new-project-using-docker-compose-with-postgres-nginx-on-ec2/57888)

<div class="topic-metadata">

**Author:** [@GazeIntoTheAbyss](https://forum.elixirforum.com/u/GazeIntoTheAbyss)\
**Replies:** 2\
**Last updated:** [August 28, 2023, 7:10am UTC](https://forum.elixirforum.com/t/deployment-lost-with-what-goes-where-base-mix-phx-new-project-using-docker-compose-with-postgres-nginx-on-ec2/57888 "2023-08-28T07:10:10Z")

</div>

Sorry in advance as this will be long. Preface I have never deployed anything before, I have never used Git, Github, Docker, Docker-Compose, Nginx, Linux(Debian), EC2, SSH, SSL or dealt with route 53 before so there wi…

---

## [How to store uploaded files on the host when using Dockerfile/docker-compose](https://forum.elixirforum.com/t/how-to-store-uploaded-files-on-the-host-when-using-dockerfile-docker-compose/54353)

<div class="topic-metadata">

**Author:** [@smahi](https://forum.elixirforum.com/u/smahi)\
**Replies:** 3\
**Last updated:** [March 7, 2023, 7:58am UTC](https://forum.elixirforum.com/t/how-to-store-uploaded-files-on-the-host-when-using-dockerfile-docker-compose/54353 "2023-03-07T07:58:40Z")

</div>

Hi, I am using the following docker-compose.yaml to deploy my app, but could not figure out how to mount a volume for storing the uploaded files, because when checking the release folder i see ./lib/my-app-0.1.0/priv/st…

---

## [Elixir+Phoenix - running a dev setup inside docker](https://forum.elixirforum.com/t/elixir-phoenix-running-a-dev-setup-inside-docker/43269)

<div class="topic-metadata">

**Author:** [@tommica](https://forum.elixirforum.com/u/tommica)\
**Replies:** 5\
**Last updated:** [February 17, 2023, 11:12pm UTC](https://forum.elixirforum.com/t/elixir-phoenix-running-a-dev-setup-inside-docker/43269 "2023-02-17T23:12:18Z")

</div>

I’m a complete noob when it comes to docker and docker compose, but I wanted to share my configuration to get a phoenix project up and running - I would really appreciate if someone could go through these and tell me wha…

---

## [Docker run Error loading shared library libstdc++.so.6 and libgcc\_s.so.1](https://forum.elixirforum.com/t/docker-run-error-loading-shared-library-libstdc-so-6-and-libgcc-s-so-1/40496)

<div class="topic-metadata">

**Author:** [@romenigld](https://forum.elixirforum.com/u/romenigld)\
**Replies:** 15\
**Last updated:** [June 16, 2022, 3:03pm UTC](https://forum.elixirforum.com/t/docker-run-error-loading-shared-library-libstdc-so-6-and-libgcc-s-so-1/40496 "2022-06-16T15:03:29Z")

</div>

I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I tried to do with this command: docker run --env-file .env -p 8080:4000 romenigld/bl…

---

## [How to run cli command from container\_1 onto in container\_2 in a docker-compose setup](https://forum.elixirforum.com/t/how-to-run-cli-command-from-container-1-onto-in-container-2-in-a-docker-compose-setup/47461)

<div class="topic-metadata">

**Author:** [@ambareesha7](https://forum.elixirforum.com/u/ambareesha7)\
**Replies:** 4\
**Last updated:** [April 29, 2022, 9:48am UTC](https://forum.elixirforum.com/t/how-to-run-cli-command-from-container-1-onto-in-container-2-in-a-docker-compose-setup/47461 "2022-04-29T09:48:07Z")

</div>

I have Elixir/Phoenix server, based on user requirements server generates markdown and latex files, then it runs System.cmd("pandoc", \[relevant commands\]) to generate PDF files everything works fine in the local system, …

---

## [Host lookup failure with Hound and Selenium under docker-compose](https://forum.elixirforum.com/t/host-lookup-failure-with-hound-and-selenium-under-docker-compose/40080)

<div class="topic-metadata">

**Author:** [@aidalgol](https://forum.elixirforum.com/u/aidalgol)\
**Replies:** 1\
**Last updated:** [February 1, 2022, 4:55pm UTC](https://forum.elixirforum.com/t/host-lookup-failure-with-hound-and-selenium-under-docker-compose/40080 "2022-02-01T16:55:04Z")

</div>

I am trying to add end-to-end testing with Hound and Selenium to my Phoenix application that is run under docker-compose, and I keep getting could not create a new session: timeout, check webdriver is running from Hound,…

---

## [Environment variable using docker-compose is always null](https://forum.elixirforum.com/t/environment-variable-using-docker-compose-is-always-null/41073)

<div class="topic-metadata">

**Author:** [@CAIOHOBORGHI](https://forum.elixirforum.com/u/CAIOHOBORGHI)\
**Replies:** 14\
**Last updated:** [July 16, 2021, 5:46pm UTC](https://forum.elixirforum.com/t/environment-variable-using-docker-compose-is-always-null/41073 "2021-07-16T17:46:41Z")

</div>

How to use environment variables with docker without using phoenix? With Phoenix it works but with only elixir is always null.

---

## [Having issues with Phoenix's docs about containers and releases](https://forum.elixirforum.com/t/having-issues-with-phoenixs-docs-about-containers-and-releases/39286)

<div class="topic-metadata">

**Author:** [@polypush135](https://forum.elixirforum.com/u/polypush135)\
**Replies:** 1\
**Last updated:** [April 28, 2021, 10:17pm UTC](https://forum.elixirforum.com/t/having-issues-with-phoenixs-docs-about-containers-and-releases/39286 "2021-04-28T22:17:02Z")

</div>

I have stood up a very basic vanilla phoenix app in hopes to better learn about how I can deploy clusters, https://github.com/joshchernoff/cluster\_example When reviewing the docs I found this example Dockerfile. Deploy…
