-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 888 Bytes
/
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
version: '3'
services:
api_gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
ports:
- "3000:3000"
container_name: api-gateway
image: api-gateway
environment:
USER_SERVICE_URL: http://user_service:3001
BOOKS_SERVICE_URL: http://books_service:3002
restart:
on-failure
networks:
- foxiom
user_service:
build:
context: ./users-services
dockerfile: Dockerfile
container_name: user-service
image: user-service
ports:
- "3001:3001"
restart:
on-failure
networks:
- foxiom
books_service:
build:
context: ./books-services
dockerfile: Dockerfile
container_name: books-service
image: books-service
restart:
on-failure
ports:
- "3002:3002"
networks:
- foxiom
networks:
foxiom:
driver: bridge