-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 798 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
user-service:
build: ./user-service
container_name: user-service
ports:
- "5002:5002"
environment:
- DATABASE_URL=postgresql://user:password@db:5432/app_db
- PYTHONUNBUFFERED=1
depends_on:
- db
order-service:
build: ./order-service
container_name: order-service
ports:
- "5001:5001"
environment:
- DATABASE_URL=postgresql://user:password@db:5432/app_db
- PYTHONUNBUFFERED=1
depends_on:
- db
db:
image: postgres:13
container_name: postgres-db
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: app_db
volumes:
- /Users/liviaalves/Workspace/dockerized-microservices-playground/db/init.sql:/docker-entrypoint-initdb.d/init.sql