-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (58 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
65 lines (58 loc) · 1.13 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
version: '3.4'
services:
product:
container_name: e-commerce_product
build:
context: ./product
dockerfile: Dockerfile
ports:
- 8080:8080
networks:
- e-commerce_network
cart:
container_name: e-commerce_cart
build:
context: ./cart
dockerfile: Dockerfile
ports:
- 8081:8081
networks:
- e-commerce_network
redis:
image: redis
ports:
- 6379:6379
networks:
- e-commerce_network
order:
container_name: e-commerce_order
build:
context: ./order
dockerfile: Dockerfile
ports:
- 8082:8082
networks:
- e-commerce_network
postgres:
image: postgres
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=142536
- POSTGRES_DB=order
networks:
- e-commerce_network
volumes:
- ./order/order.sql:/docker-entrypoint-initdb.d/order.sql
nginx:
image: nginx
ports:
- 80:80
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- e-commerce_network
networks:
e-commerce_network:
driver: bridge