fix: set explicit network name to prevent compose prefix mismatch
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Has been cancelled
Docker Compose prefixes network names with the project name by default. The app container (started via docker run) was connecting to 'portfolio_dev' while postgres/redis were on '<project>_portfolio_dev' - different networks. Setting 'name: portfolio_dev' forces the exact name so all containers share the same network. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -36,6 +36,7 @@ services:
|
||||
|
||||
networks:
|
||||
portfolio_dev:
|
||||
name: portfolio_dev
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user