Skip to content

Instantly share code, notes, and snippets.

@hakaneroztekin
Last active June 17, 2022 09:24
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 hakaneroztekin/8c8ae13af0e7a41496846f7c6c1d0a56 to your computer and use it in GitHub Desktop.
Save hakaneroztekin/8c8ae13af0e7a41496846f7c6c1d0a56 to your computer and use it in GitHub Desktop.
docker-compose-with-network [docker in a nutshell]
version: "3.7"
services:
spring-app:
build: .
image: spring-app
ports:
- "4000:8080"
networks:
- shared-network
depends_on:
- redis-service
redis-service:
image: redis
networks:
- shared-network
networks:
shared-network: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment