-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 1.02 KB
/
docker-compose.yml
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
49
version: '3.8'
services:
soap-service:
build:
context: ./soap-service
container_name: soap-service
ports:
- "8001:8001"
depends_on:
- postgres
environment:
- DATABASE_URL=postgresql://postgres:pass@postgres:5432/hotel_soap
rest-service:
build:
context: ./rest-service
container_name: rest-service
ports:
- "8002:8002"
depends_on:
- postgres
environment:
- DATABASE_URL=postgresql://postgres:pass@postgres:5432/hotel_rest
inventory-service:
build:
context: ./inventory-service
container_name: inventory-service
ports:
- "8003:8003"
depends_on:
- postgres
environment:
- DATABASE_URL=postgresql://postgres:pass@postgres:5432/hotel_inventory
postgres:
image: postgres:15
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "pass"
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: