Skip to content

Commit

Permalink
update/docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
arnavrneo committed Mar 23, 2024
1 parent 5d37538 commit 4c9d768
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions url-shortener/frontend-servers/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
services:
frontend:
image: d12758100786
container_name: frontend1
# build:
# context: ../frontend/
# dockerfile: Dockerfile
Expand All @@ -10,7 +9,7 @@ services:

go-backend:
image: 4b33b091a935
container_name: go
container_name: go # for referencing inside the other containers
# build:
# context: ../servers/go/
# dockerfile: Dockerfile
Expand All @@ -21,7 +20,7 @@ services:

express-backend:
image: feb890d9439b
container_name: express1
container_name: express
# build:
# context: ../servers/express-js/
# dockerfile: Dockerfile
Expand All @@ -37,5 +36,5 @@ services:
ports:
- "8080:80"
depends_on:
- go-backend
- go-backend # cant use container name here
- express-backend
4 changes: 2 additions & 2 deletions url-shortener/servers/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
services:
go:
image: 4b33b091a935
image: 4b33b091a935 # replace with image/local-tagid
# build:
# context: go/
# dockerfile: Dockerfile
ports:
- "1234:1234"

express:
image: feb890d9439b
image: feb890d9439b # replace with image/local-tagid
# build:
# context: express-js/
# dockerfile: Dockerfile
Expand Down
3 changes: 1 addition & 2 deletions url-shortener/servers/proxy/urlShort.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
upstream backend {
least_conn;
server go:1234;
server go:5678;
server express:5678;
}

server {
Expand Down

0 comments on commit 4c9d768

Please sign in to comment.