-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (78 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
79 lines (78 loc) · 1.78 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3.5'
services:
# Products service - spring boot and oracle
products-db:
container_name: products-db
image: gvenzl/oracle-xe
ports:
- "11521:1521"
environment:
- ORACLE_PASSWORD=password
- ORACLE_DATABASE=products
- APP_USER=products
- APP_USER_PASSWORD=password
products-app:
container_name: products-app
image: products-app
build:
context: ./products
ports:
- "18081:8080"
- "18001:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
# Cart service - spring boot and postgres
cart-db:
container_name: cart-db
image: postgres
ports:
- "15433:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=cart
extra_hosts:
- "host.docker.internal:host-gateway"
cart-app:
container_name: cart-app
image: cart-app
build:
context: ./cart
ports:
- "18082:8080"
- "18002:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
# Payment service - spring boot and postgres
payment-db:
container_name: payment-db
image: postgres
ports:
- "15434:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=postgres
- POSTGRES_DB=payment
extra_hosts:
- "host.docker.internal:host-gateway"
payment-app:
container_name: payment-app
image: payment-app
build:
context: ./payment
ports:
- "18083:8080"
- "18003:8000"
extra_hosts:
- "host.docker.internal:host-gateway"
# Stats service
stats-app:
container_name: stats-app
image: stats-app
build:
context: ./stats
ports:
- "18084:8080"
- "18004:8000"
extra_hosts:
- "host.docker.internal:host-gateway"