Created
May 9, 2023 09:08
-
-
Save krukid/0afe690da09c3df25ecdb5b4a2327875 to your computer and use it in GitHub Desktop.
docker-compose with project-based network namespace
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
networks: | |
test-net: | |
name: $COMPOSE_PROJECT_NAME-test-net | |
volumes: | |
test-vol: | |
services: | |
app: | |
volumes: | |
- test-vol:/test-vol | |
networks: | |
- test-net | |
command: | |
- echo | |
- testing | |
- $COMPOSE_PROJECT_NAME | |
image: node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment