Skip to content

Commit

Permalink
Use networks to isolate your setup to avoid network conflicts with th…
Browse files Browse the repository at this point in the history
…e host and other containers

And helps containers to find and communicate with each other easily
  • Loading branch information
pH-7 committed May 9, 2024
1 parent 222a928 commit d84fa15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,13 @@ services:
context: .
depends_on:
- redis
networks:
- app-network

redis:
image: redis:alpine
restart: unless-stopped
command: ["redis-server", "--bind", "0.0.0.0", "--port", "6379"]
networks:
app-network:
driver: bridge

0 comments on commit d84fa15

Please sign in to comment.