-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
50 lines (46 loc) · 993 Bytes
/
docker-compose.yaml
File metadata and controls
50 lines (46 loc) · 993 Bytes
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
# version: "3.8"
services:
book-service-db:
image: mongo:latest
container_name: book-service-db
volumes:
- mongo-data:/data/db
networks:
- app-network
book-service:
image: jschris/book-service:v1
container_name: book-service
networks:
- app-network
environment:
- DATABASE_URL=mongodb://book-service-db:27017/books
depends_on:
- book-service-db
pull_policy: always
loan-service:
image: jschris/loan-service:v1
container_name: loan-service
networks:
- app-network
environment:
- BOOK_SERVICE_URL=http://book-service:3000
pull_policy: always
depends_on:
- book-service-db
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
networks:
- app-network
depends_on:
- book-service
- loan-service
volumes:
mongo-data:
networks:
app-network:
driver: bridge