-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (83 loc) · 1.84 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
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
80
81
82
83
84
85
86
87
version: "3.8"
services:
db:
image: postgres:14.10-alpine
environment:
- POSTGRES_DB=bigstore
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=sql
volumes:
- ecommerce-data:/var/lib/postgresql/data/
ports:
- "5433:5432"
networks:
- ecommerce-network
auth-ms:
build:
context: ./bigstore-auth-ms
dockerfile: Dockerfile
volumes:
- ecommerce-data:/data
networks:
- ecommerce-network
ports:
- "8001:8001"
environment:
- DATABASE_URL=postgresql://postgres:sql@db/bigstore
depends_on:
- db
commerce-ms:
build:
context: ./bigstore-commerce-ms
dockerfile: Dockerfile
volumes:
- ecommerce-data:/data
networks:
- ecommerce-network
ports:
- "8002:8002"
environment:
- DATABASE_URL=postgresql://postgres:sql@db/bigstore
depends_on:
- db
gateway:
build:
context: ./bigstore-gateway
dockerfile: Dockerfile
volumes:
- ecommerce-data:/data
networks:
- ecommerce-network
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://postgres:sql@db/bigstore
depends_on:
- db
- auth-ms
- commerce-ms
front:
build:
context: ./bigstore-v2
dockerfile: Dockerfile
volumes:
- ecommerce-data:/data
networks:
- ecommerce-network
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgresql://postgres:sql@db/bigstore
# - NEXT_PUBLIC_BASEURL=http://gateway:8000/gateway
# - NEXT_PUBLIC_BASEURL_3=http://commerce-ms:8002
# - NEXT_PUBLIC_BASEURL=http://172.21.0.5:8000/gateway
- NEXT_PUBLIC_BASEURL_2=http://commerce-ms:8002
depends_on:
- db
- gateway
- auth-ms
- commerce-ms
volumes:
ecommerce-data:
networks:
ecommerce-network: