Skip to content

Instantly share code, notes, and snippets.

@ravikyada
Created February 19, 2024 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravikyada/e3b9b678cf9f10de53cff4d79aa7c960 to your computer and use it in GitHub Desktop.
Save ravikyada/e3b9b678cf9f10de53cff4d79aa7c960 to your computer and use it in GitHub Desktop.
Docker Compose YAML to Define Networking Syntax
version: '3'
services:
app:
image: my-app
networks:
- my-network
db:
image: my-db
networks:
- my-network
networks:
my-network:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment