-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
78 lines (73 loc) · 1.7 KB
/
docker-compose.yaml
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
services:
booksstorage:
image: docker.io/viniciusrw/booksstorage:latest
restart: always
build:
context: server/booksstorage
dockerfile: Dockerfile
ports:
- "8080:8080"
deploy:
mode: replicated
replicas: 1
environment:
- MONGODB_URI=mongodb://mongodb:27017
- MONGODB_USERNAME=mongoadmin
- MONGODB_PASSWORD=secret
- MONGODB_DATABASE=bookstorage
- MONGODB_COLLECTION=books
depends_on:
- mongodb
mongodb:
image: docker.io/mongo
restart: always
ports:
- "27017:27017"
deploy:
mode: replicated
replicas: 1
environment:
- MONGO_INITDB_ROOT_USERNAME=mongoadmin
- MONGO_INITDB_ROOT_PASSWORD=secret
volumes:
- ./mongo/data:/data/db
booksstorageclient:
image: docker.io/viniciusrw/booksstorageclient:latest
restart: always
build:
context: client/
dockerfile: Dockerfile
ports:
- "8078:80"
deploy:
mode: global
booksstoragemail:
image: docker.io/viniciusrw/booksstorage-mail:latest
restart: always
build:
context: server/BooksStorage.Mail
dockerfile: Dockerfile
ports:
- "8081:80"
deploy:
mode: replicated
replicas: 1
mailhog:
image: docker.io/mailhog/mailhog:latest
restart: always
ports:
- "1025:1025"
- "8025:8025"
booksstorage-feeder:
image: docker.io/viniciusrw/booksstorage-feeder:latest
restart: always
build:
context: server/booksstorage-feeder
dockerfile: Dockerfile
environment:
BOOKSSTORAGEAPIURL: http://booksstorage:8080/api/book
deploy:
mode: replicated
replicas: 1
depends_on:
- booksstorage