Last active
June 17, 2022 09:24
-
-
Save hakaneroztekin/8c8ae13af0e7a41496846f7c6c1d0a56 to your computer and use it in GitHub Desktop.
docker-compose-with-network [docker in a nutshell]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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