Skip to content

Commit

Permalink
added docker networking feature so that 2a5-app can join properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Reck committed Mar 29, 2024
1 parent e3933e2 commit e0943d8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ services:
ports:
- "${DATABASE_PORT}:${DATABASE_PORT}"
container_name: ${DOCKER_DB_CONTAINERNAME:-2a5-db-development}
networks:
- 2a5

api:
build:
Expand All @@ -30,7 +32,13 @@ services:
ports:
- "${DOCKER_API_PORT:-3000}:3000"
container_name: ${DOCKER_API_CONTAINERNAME:-2a5-api-development}
networks:
- 2a5

volumes:
db-data:
name: ${DOCKER_DB_VOLUMENAME:-2a5-db-data-development}

networks:
2a5:
name: 2a5

0 comments on commit e0943d8

Please sign in to comment.