forked from microservices-demo/user
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (37 loc) · 854 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
version: '2'
services:
user:
build:
context: .
image: weaveworksdemos/user
hostname: user
restart: always
cap_drop:
- all
cap_add:
- NET_BIND_SERVICE
read_only: true
environment:
- MONGO_HOST=user-db:27017
- reschedule=on-node-failure
ports:
- "8080:80"
user-db:
build:
context: ./docker/user-db/
image: weaveworksdemos/user-db
hostname: user-db
restart: always
cap_drop:
- all
cap_add:
- CHOWN
- SETGID
- SETUID
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid
environment:
- reschedule=on-node-failure
ports:
- "27017:27017"