-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
50 lines (48 loc) · 912 Bytes
/
Copy pathcompose.yml
File metadata and controls
50 lines (48 loc) · 912 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.9"
services:
devopsdb:
image: nikhilkotharu/dockerapp:db
ports:
- "3306:3306"
deploy:
replicas: 3
restart_policy:
condition: any
resources:
limits:
cpus: '0.3'
memory: '256m'
reservations:
cpus: '0.1'
memory: '128m'
networks:
- mynetwork
volumes:
- db_volume:/opt/nikhil
application:
image: nikhilkotharu/dockerapp:web
ports:
- "7777:8080"
deploy:
replicas: 3
restart_policy:
condition: any
resources:
limits:
cpus: '0.3'
memory: '256m'
reservations:
cpus: '0.1'
memory: '128m'
depends_on:
- devopsdb
networks:
- mynetwork
volumes:
- app_volume:/opt/nikhil
networks:
mynetwork:
driver: overlay
volumes:
db_volume:
app_volume: