-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
113 lines (103 loc) · 2.17 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
news-ms:
build: news-laptops-ms
container_name: news-ms
ports:
- "8000:8000"
depends_on:
- mongodb
networks:
- 'lappy_network'
specs-micro:
build: specs-micro/
container_name: lappy-specs
command: supervisord -c ./supervisord.conf
ports:
- '8001:8001'
- '9001:9001'
networks:
- 'lappy_network'
depends_on:
- mongodb
rating-app:
networks:
- 'lappy_network'
build: LaptopRater/
restart: always
ports:
- "8004:8004"
depends_on:
- mongodb
accessories:
build: Accessories/
container_name: lappy_accessories
ports:
- '8002:8002'
restart: always
environment:
- MONGODB_URL=mongodb://mongodb/
networks:
- 'lappy_network'
depends_on:
- mongodb
auth-system:
build: auth_system/
container_name: auth_system
ports:
- "8005:8005"
depends_on:
- redis
- postgres
command: supervisord -c supervisord.conf
restart: on-failure
networks:
- 'lappy_network'
redis:
image: redis
container_name: redis
volumes:
- ./auth_system/redis.conf:/usr/local/etc/redis/redis.conf
- redis_data:/data
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6380:6380"
networks:
- 'lappy_network'
postgres:
image: postgres
container_name: postgres
ports:
- "5433:5432"
environment:
- POSTGRES_DB=auth_system
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- 'lappy_network'
mongodb:
build: mongodb/
container_name: mongodb
command: "mongod"
networks:
- 'lappy_network'
krakend:
image: devopsfaith/krakend:watch
container_name: krakend
ports:
- "8080:8080"
volumes:
- ./krakend.json:/etc/krakend/krakend.json
- ./ratings.lua:/etc/krakend/ratings.lua
command: [ "run", "-c", "krakend.json" ]
depends_on:
- news-ms
networks:
- 'lappy_network'
volumes:
redis_data:
postgres_data:
networks:
lappy_network:
driver: bridge