-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 987 Bytes
/
docker-compose.yml
File metadata and controls
48 lines (44 loc) · 987 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '3'
services:
user-management-service:
build:
context: ./UserManagementService
ports:
- "8000:8000"
environment:
- DEBUG=False
- DB_NAME=user_management_db
- DB_USER=root
- DB_PASSWORD=12345
- DB_HOST=db
- DB_PORT=5432
depends_on:
- db
command: bash -c "sleep 3 && ./entrypoint.sh"
note-service:
build:
context: ./NoteService
ports:
- "8001:8000"
environment:
- DEBUG=False
- DB_NAME=note_service_db
- DB_USER=root
- DB_PASSWORD=12345
- DB_HOST=db
- DB_PORT=5432
- USER_MANAGEMENT_URL=http://user-management-service:8000/
depends_on:
- db
- user-management-service
command: bash -c "sleep 3 && ./entrypoint.sh"
db:
build:
context: ./db
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=12345
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: