Skip to content

Commit

Permalink
Add files for go multimodule support
Browse files Browse the repository at this point in the history
  • Loading branch information
liel-almog committed Jan 20, 2024
1 parent 6fc3e5e commit 374edb3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
36 changes: 35 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
version: "3"

services:
kafka:
kafka-server:
image: docker.io/bitnami/kafka:3.6
ports:
- "29092:29092"
Expand Down Expand Up @@ -33,9 +33,43 @@ services:
- DYNAMIC_CONFIG_ENABLED=true
networks:
- app-tier

backend:
build:
context: backend/
dockerfile: Dockerfile
ports:
- "8080:8080"
networks:
- app-tier

frontend:
build:
context: frontend/
dockerfile: Dockerfile
ports:
- "3000:3000"
networks:
- app-tier

postgres-db:
image: postgres:16-alpine
container_name: postgres-db
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: liel-almog
volumes:
- postgresvol:/var/lib/postgresql/data
- $PWD/docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/ # This is where the SQL scripts are located
networks:
- app-tier

volumes:
kafka_data:
driver: local
postgresvol:
driver: local
networks:
app-tier:
driver: bridge
6 changes: 6 additions & 0 deletions go.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
go 1.21.5

use (
./backend
./storage-coordinator
)
5 changes: 5 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=

0 comments on commit 374edb3

Please sign in to comment.