Skip to content

Commit

Permalink
Fix container naming
Browse files Browse the repository at this point in the history
  • Loading branch information
S3L1M committed Jul 29, 2023
1 parent 1aa3def commit ed6103f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.9"
services:
frontend-server:
name: frontend
container_name: frontend
image: nginx
build: ./frontend-server
ports:
Expand All @@ -10,7 +10,7 @@ services:
- api-gateway

api-gateway:
name: api-gateway
container_name: api-gateway
image: nginx
restart: on-failure
build: ./gateway
Expand All @@ -21,7 +21,7 @@ services:
- inventory-service

accounts-service:
name: accounts-api
container_name: accounts-api
build: ./accounts-service
restart: on-failure
depends_on:
Expand All @@ -30,7 +30,7 @@ services:
- DATABASE_URL=postgresql://postgres:password@db1/accounts_db

db1:
name: accounts-db
container_name: accounts-db
image: postgres
restart: unless-stopped
environment:
Expand All @@ -39,15 +39,15 @@ services:
POSTGRES_DB: accounts_db

inventory-service:
name: inventory-api
container_name: inventory-api
build: ./inventory-service
restart: on-failure
depends_on:
- db2
- caching-db

db2:
name: inventory-db
container_name: inventory-db
image: postgres
restart: unless-stopped
environment:
Expand All @@ -56,6 +56,6 @@ services:
POSTGRES_DB: inventory_db

caching-db:
name: redis-caching
container_name: redis-caching
image: redis
restart: unless-stopped

0 comments on commit ed6103f

Please sign in to comment.