Skip to content

Commit

Permalink
updated docker compose config
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycook123 committed Dec 5, 2024
1 parent 9265d7a commit 8398c54
Showing 1 changed file with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
# docker-compose.deploy.yml
version: '3.8'

volumes:
userdb_vol:
productdb_vol:
orderdb_vol:

networks:
micro_network:
name: micro_network

services:
user-api:
container_name: cuser-service
build:
context: ../user-service
context: ./user-service
ports:
- "5001:5001"
depends_on:
Expand All @@ -41,7 +29,7 @@ services:
product-api:
container_name: cproduct-service
build:
context: ../product-service
context: ./product-service
ports:
- "5002:5002"
depends_on:
Expand All @@ -68,7 +56,7 @@ services:
order-api:
container_name: corder-service
build:
context: ../order-service
context: ./order-service
ports:
- "5003:5003"
depends_on:
Expand All @@ -95,9 +83,18 @@ services:
frontend-app:
container_name: cfrontend-app
build:
context: .
context: ./frontend
ports:
- "5000:5000"
networks:
- micro_network
restart: always
restart: always

volumes:
userdb_vol:
productdb_vol:
orderdb_vol:

networks:
micro_network:
name: micro_network

0 comments on commit 8398c54

Please sign in to comment.