Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 11, 2024
1 parent 48dc517 commit 23be771
Showing 1 changed file with 16 additions and 31 deletions.
47 changes: 16 additions & 31 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,23 @@
version: "3.8"
version: '3'

services:
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
app:
build: .
ports:
- "5000:5000"
- "8000:8000"
depends_on:
- db
environment:
- JWT_SECRET_KEY=my_secret_key
- DATABASE_URL=postgres://user:password@db:5432/database

authentication:
build:
context: ./authentication
dockerfile: Dockerfile
ports:
- "5001:5001"
environment:
- DATABASE_URI=postgres://user:password@localhost/db

transaction-processing:
build:
context: ./transaction-processing
dockerfile: Dockerfile
ports:
- "5002:5002"
db:
image: postgres
environment:
- BROKER_URL=amqp://guest:guest@localhost
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=database
volumes:
- db-data:/var/lib/postgresql/data

account-management:
build:
context: ./account-management
dockerfile: Dockerfile
ports:
- "5003:5003"
environment:
- DATABASE_URI=postgres://user:password@localhost/db
volumes:
db-data:

0 comments on commit 23be771

Please sign in to comment.