🌐
Docker Docs
docs.docker.com › manuals › docker compose › docker compose quickstart
Docker Compose Quickstart | Docker Docs
Compose merges both files at startup. The web service can still reference redis by name because all included services share the same default network. This is a simplified example, but it demonstrates the basic principle of include and how it ...
🌐
GitHub
github.com › docker › awesome-compose
GitHub - docker/awesome-compose: Awesome Docker Compose samples · GitHub
A curated list of Docker Compose samples.
Starred by 45K users
Forked by 8.1K users
Languages   HTML 35.6% | Dockerfile 16.0% | Rust 9.4% | TypeScript 9.2% | Java 6.1% | Python 5.9%
Discussions

Awesome Docker Compose Examples
Nice! Next to the tip of using secrets and a .env file, I can recommend using anchors to avoid having to repeat the same things over and over again. Like the restart option, possibly the PUID and GUID for the LSIO containers etc. More info (not my site but explains it well) here: https://nickjanetakis.com/blog/docker-tip-82-using-yaml-anchors-and-x-properties-in-docker-compose More on reddit.com
🌐 r/selfhosted
70
478
February 25, 2023
Awesome Docker Compose Examples
If anyone is looking for ready to go web app examples aimed at both development and production with Docker Compose, I maintain: · The examples use a combination of services for each tech stack such as web + worker + postgres + redis + esbuild + tailwind. The Rails example is set up for Hotwire ... More on news.ycombinator.com
🌐 news.ycombinator.com
82
375
March 3, 2023
Docker compose example

You should have a wait start shell script instead of depending on network for the boot order.

More on reddit.com
🌐 r/docker
5
12
September 21, 2017
Docker-compose, two container example. Can you explain to me why this works?

I think other people have hit most of our questions directly so I'm not going to recover that ground.

Instead, I would offer a different way of thinking about your Dockerfile and Docker-Compose. Your Dockerfile dictates the setup of your container (what goes in the image), and some defaults for its behavior (things like a default CMD, or an entrypoint file).

Docker-Compose is more akin to a user-friendly interface for running complex docker container run [... options] <container_name> commands.

Instead of having to run containers commands inundated with option flags, you run them through docker-compose, and your compose file fills in the options for you. So you can do things like connect to different networks, mount volumes, send secrets, create ENV vars, etc. But none of these things influences your images themselves; at most you might override some defaults otherwise defined in you Dockerfile.

Your question about CMD is a great example. Outside of compose you could run a container from your image and Docker would use the CMD from your Dockerfile. But called through compose, you can override this setting. It's super useful for things like overriding the CMD your containers start with when developing locally. You might want to run a dev-server as your default start command with compose, but leave the image built so it defaults to a production server startup.

More on reddit.com
🌐 r/docker
9
8
December 11, 2018
🌐
Stack Overflow
stackoverflow.com › questions › 78277458 › up-to-date-examples-of-a-docker-compose-yml
Up-to-date examples of a docker-compose.yml? - Stack Overflow
The Compose documentation still describes the version 2 and version 3 file formats as "legacy" formats, but you can use either of these formats unmodified with the modern plugin-based Compose. The deploy: option in particular is part of the version 3 format. However, if you're not using Docker Swarm, it will be ignored.
🌐
NodeBB Community
community.nodebb.org › home › technical support › example docker compose setup?
Example Docker Compose Setup? | NodeBB Community
April 10, 2018 - The install instructions link to your docs which have no reference to the Docker container at all. Is anyone currently running a NodeBB instance in Docker and care to share their config? ... Here's one example: https://github.com/boomzillawtf/tdwtf/blob/master/Dockerfile I know they use it in production
🌐
Reddit
reddit.com › r/selfhosted › awesome docker compose examples
r/selfhosted on Reddit: Awesome Docker Compose Examples
February 25, 2023 -

Hi r/selfhosted,

since my last post I've cleaned my repository on GitHub with various Docker Compose examples. I've added a clean readme, issue templates and also short descriptions for each currently available compose project (aligned to the popular awesome-selfhosted repo).

I'll update the repository regularly if I come across bugs or something note-worthy. For example, if a cool project does not yet provide a docker-compose.yml or if the setup is a bit more complicated, combining various docker images with required config files etc. (like traefik or a grafana monitoring stack combining multiple images like promtail, influxdb, telegraf and so on).

Feel free to check it out if you haven't yet:

https://github.com/Haxxnet/Compose-Examples

If you have any missing compose examples that are not easily publicly available or already documented well enough by the project maintainer, feel free to issue PRs or open an issue with a request for a missing compose example. Happy to help out and extend the examples.

Cheers!

🌐
KDnuggets
kdnuggets.com › top-7-docker-compose-templates-every-developer-should-use
Top 7 Docker Compose Templates Every Developer Should Use - KDnuggets
2 weeks ago - The postgresql-pgadmin example in Docker’s awesome-compose repository is presented by Docker as a sample setup for a PostgreSQL database with the pgAdmin web interface, making it a practical starting point for managing schemas, running queries, and inspecting data in a more visual local environment.
🌐
Docker Docs
docs.docker.com › manuals › docker compose
Docker Compose | Docker Docs
Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool.
Find elsewhere
🌐
GeeksforGeeks
geeksforgeeks.org › devops › docker-compose
Docker Compose - GeeksforGeeks
3 weeks ago - Starts all services defined in docker-compose.yml. Creates containers, networks, and volumes if missing. Add -d to run in background. Example: docker-compose up -d
🌐
Docker Hub
hub.docker.com › r › docker › compose
docker/compose - Docker Image
Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a Compose file to configure your application's services. Then, using a single command, you create and start all the services from your configuration.
🌐
Docker
docs.docker.com › get started › docker workshop › use docker compose
Use Docker Compose | Docker Docs
The service name is displayed at ... you can add the service name to the end of the logs command (for example, docker compose logs -f app)....
🌐
Medium
medium.com › dev-sec-ops › docker-101-docker-compose-db96ae884cda
Docker 101: Docker Compose
February 2, 2020 - Docker compose have three different versions, the above image of docker-compose.yml files are just a way to represent the changes that have taken place in all the versions and compare them. ... It can’t run docker images in a sequence as it just runs everything simultaneously and hence if one docker image depends on the other for certain things the whole thing crashes.
🌐
Hacker News
news.ycombinator.com › item
Awesome Docker Compose Examples | Hacker News
March 3, 2023 - If anyone is looking for ready to go web app examples aimed at both development and production with Docker Compose, I maintain: · The examples use a combination of services for each tech stack such as web + worker + postgres + redis + esbuild + tailwind. The Rails example is set up for Hotwire ...
🌐
n8n
docs.n8n.io › hosting › installation › server-setups › docker-compose
Docker Compose | n8n Docs
The Docker Compose file above configures two containers: one for n8n, and one to run traefik, an application proxy to manage TLS/SSL certificates and handle routing. It also creates and mounts two Docker Volumes and mounts the local-files directory you created earlier: ... You can now reach ...
🌐
authentik
docs.goauthentik.io › installation and configuration › docker compose installation
Docker Compose installation | authentik
View our video about installing authentik on Docker. To download the latest compose.yml open your terminal, navigate to the directory of your choice, and then run the following command:
🌐
DEV Community
dev.to › davidsabine › docker-compose-hello-world-1p14
Docker Compose, Hello World - DEV Community
November 25, 2022 - Unlike the previous post, wherein a new container is produced each time you run docker run hello-world, a new container is not produced by docker-compose up; rather, Docker will attach to the existing container inside the “compose project” made in the previous and will run the command in the hello-world image.
🌐
PhotoPrism
docs.photoprism.app › getting-started › docker-compose
PhotoPrism - Docker Compose
Before you run this, make sure you are in the directory where you want to install PhotoPrism and that Docker Desktop is installed and started on your PC. Download our compose.yaml example for macOS (right click and Save Link As...) to a folder of your choice, and change the configuration as needed:
🌐
Immich
docs.immich.app › docker compose [recommended]
Docker Compose [Recommended] | Immich
From the directory you created ... docker-compose.yml and .env files), run the following command to start Immich as a background service: ... If you get an error such as unknown shorthand flag: 'd' in -d or open <location of your .env file>: permission denied, you are probably running the wrong Docker version. (This happens, for example, with the ...
🌐
freeCodeCamp
freecodecamp.org › news › what-is-docker-compose-how-to-use-it
What is Docker Compose? How to Use it with an Example
April 7, 2023 - To overcome this, Docker introduced a concept called Multi Containers (Docker Compose). Before learning about Docker Compose, let's quickly learn how to start a database host in Docker. In the example part of this tutorial, we'll spin up a NodeJS container and MongoDB container together.
🌐
Docker
docker.com
Docker: Accelerated Container Application Development
Run agents like you run apps. Spin up your full agentic stack with `docker compose up`. Deploy anywhere: locally, across clouds, or on Docker Cloud.
🌐
Development Containers
containers.dev › guide › dockerfile
Using Images, Dockerfiles, and Docker Compose
First, add a file named Dockerfile next to your devcontainer.json. For example: