-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (84 loc) · 1.97 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
version: '3.7'
services:
web:
build: './web'
image: 'sose-web:0.0.1'
ports:
- "3111:3000"
users:
build: './users'
image: 'sose-users:0.0.1'
ports:
- "3222:3000"
depends_on:
- user-mongodb
environment:
- MONGO_DB_URI=mongodb://user-mongodb:27111
- log_level=0
user-mongodb:
image: mongo:3.6.18-xenial
volumes:
- ./users/userdata:/data/db
command: mongod --port 27111 --quiet --nojournal
ports:
- "27111:27017"
# environment:
# - MONGO_INITDB_ROOT_USERNAME=admin
# - MONGO_INITDB_ROOT_PASSWORD=admin
# - MONGO_INITDB_DATABASE=users
movies:
build: './movies'
image: 'sose-movies:0.0.1'
ports:
- "3333:3000"
depends_on:
- movie-mongodb
environment:
- MONGO_DB_URI=mongodb://movie-mongodb:27222
movie-mongodb:
image: mongo:3.6.18-xenial
volumes:
- ./movies/moviedata:/data/db
command: mongod --port 27222 --quiet --nojournal
ports:
- "27222:27017"
# environment:
# - MONGO_INITDB_ROOT_USERNAME=admin
# - MONGO_INITDB_ROOT_PASSWORD=admin
# - MONGO_INITDB_DATABASE=users
reviews:
build: './reviews'
image: 'sose-reviews:0.0.1'
ports:
- "3444:3000"
depends_on:
- review-mongodb
environment:
- MONGO_DB_URI=mongodb://review-mongodb:27333
review-mongodb:
image: mongo:3.6.18-xenial
volumes:
- ./reviews/reviewdata:/data/db
command: mongod --port 27333 --quiet --nojournal
ports:
- "27333:27017"
# environment:
# # - MONGO_INITDB_ROOT_USERNAME=admin
# # - MONGO_INITDB_ROOT_PASSWORD=admin
# - MONGO_INITDB_DATABASE=users
nginx:
image: nginx:1.17.10-alpine
ports:
- "8080:8080"
volumes:
- ./web/public:/srv/www/static
- ./nginx.conf:/etc/nginx/conf.d/default.conf
links:
- web
- users
- movies
- reviews
volumes:
userdata:
moviedata:
reviewdata: