-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (43 loc) · 861 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (43 loc) · 861 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
version: "3.9"
services:
app1: &app
container_name: camel_one
image: omurilo/camel
build:
context: .
environment:
PORT: "8080"
network_mode: host
volumes:
- ./database:/usr/src/myapp/database
develop:
watch:
- action: rebuild
path: ./src
- action: sync+restart
path: ./nginx.conf
target: /nginx.conf
deploy:
resources:
limits:
cpus: "0.65"
memory: "250MB"
app2:
<<: *app
container_name: camel_two
environment:
PORT: "8081"
nginx:
container_name: nginx
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- app1
- app2
network_mode: host
deploy:
resources:
limits:
cpus: "0.20"
memory: "50MB"