-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (75 loc) · 1.83 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
version: "3.8"
services:
nginx:
image: nginx:latest
restart: always
container_name: nginx
volumes:
- "./nginx/default.conf:/etc/nginx/conf.d/default.conf"
ports:
- "8000:80"
postgres-db:
image: postgres:14.1-alpine
restart: always
container_name: postgres-db
environment:
- POSTGRES_USER=notification
- POSTGRES_PASSWORD=notification
- POSTGRES_DB=notifications
ports:
- "5432:5432"
volumes:
- ./psql-db:/var/lib/postgresql/data
nosql-db:
image: mongo
ports:
- "27017:27017"
container_name: nosql-db
volumes:
- ./mongo-db/:/data/db
redis:
image: redis
ports:
- "6379:6379"
restart: always
container_name: redis
volumes:
- ./redis-db/:/redis/db
customer:
build:
context: ./customer
dockerfile: Dockerfile
ports:
- "8001:8001"
container_name: customer
restart: always
products:
build:
context: ./products
dockerfile: Dockerfile
ports:
- "8002:8002"
container_name: products
restart: always
shopping:
build:
context: ./shopping
dockerfile: Dockerfile
ports:
- "8003:8003"
container_name: shopping
restart: always
payments:
build:
context: ./payments
dockerfile: Dockerfile
ports:
- "8004:8004"
container_name: payments
restart: always
mail:
build:
context: ./mail
dockerfile: Dockerfile
container_name: mail
restart: always