diff --git a/docker-compose.yaml b/docker-compose.yaml index dca43ee..17f0421 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,7 @@ version: "3.9" services: frontend-server: - name: frontend + container_name: frontend image: nginx build: ./frontend-server ports: @@ -10,7 +10,7 @@ services: - api-gateway api-gateway: - name: api-gateway + container_name: api-gateway image: nginx restart: on-failure build: ./gateway @@ -21,7 +21,7 @@ services: - inventory-service accounts-service: - name: accounts-api + container_name: accounts-api build: ./accounts-service restart: on-failure depends_on: @@ -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: @@ -39,7 +39,7 @@ services: POSTGRES_DB: accounts_db inventory-service: - name: inventory-api + container_name: inventory-api build: ./inventory-service restart: on-failure depends_on: @@ -47,7 +47,7 @@ services: - caching-db db2: - name: inventory-db + container_name: inventory-db image: postgres restart: unless-stopped environment: @@ -56,6 +56,6 @@ services: POSTGRES_DB: inventory_db caching-db: - name: redis-caching + container_name: redis-caching image: redis restart: unless-stopped