-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (55 loc) · 1.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
# If you don't want to build images - uncomment all "image" fields and comment all "build" fields
version: '3.3'
services:
user-api:
container_name: nest-user-service
restart: always
build: user-service
#image: iivashchuk/jsprocamp-user-service
ports:
- '3000:3000'
links:
- mongo
- redis
environment:
- PORT=3000
- DATABASE_URL=mongodb://mongo:27017/users
- REDIS_PORT=6379
- REDIS_HOST=redis
mongo:
container_name: mongo
image: mongo
ports:
- '27017:27017'
redis:
container_name: redis
image: redis
ports:
- '6379:6379'
chat:
container_name: chat-service
restart: always
build: chat-service
#image: iivashchuk/jsprocamp-chat-service
ports:
- '3001:3001'
environment:
- PORT=3001
networks:
- dockernet
client:
container_name: nginx-client-app
restart: always
build: client-app
#image: iivashchuk/jsprocamp-client-app
ports:
- '8080:80'
environment:
- API_HOST=chat-service # hostname -I
- API_PORT=3001
links:
- chat
networks:
- dockernet
networks:
dockernet: