-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (55 loc) · 1.18 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (55 loc) · 1.18 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
version: "3"
networks:
cakestorenet:
services:
assortment-service:
image: assortment-service
container_name: assortment-service
build: ./assortment-service/
restart: unless-stopped
ports:
- "6565:6565"
depends_on:
- postgresql
- eureka-server
networks:
- cakestorenet
links:
- postgresql
order-service:
image: order-service
container_name: order-service
build: ./order-service/
restart: unless-stopped
ports:
- "9090:9090"
depends_on:
- postgresql
- eureka-server
networks:
- cakestorenet
links:
- postgresql
eureka-server:
image: eureka-server
container_name: eureka-server
build: ./eureka-server/
restart: unless-stopped
ports:
- "8761:8761"
networks:
- cakestorenet
postgresql:
image: postgres:12
hostname: postgresql
container_name: postgresql
restart: unless-stopped
volumes:
- ./database/1-create_databases.sql:/docker-entrypoint-initdb.d/1-create_databases.sql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
networks:
- cakestorenet