-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (71 loc) · 1.59 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
---
# MonoRepo multi services
version: "3.8"
services:
rproxy:
image: ${REGISTRY_URI:-public.ecr.aws/johnpreston/}blog-rproxy:${IMAGE_TAG:-latest}
build:
context: ./reverse_proxy
dockerfile: Dockerfile
ports:
- 80:80
- 443:443
environment:
DEBUG: "true"
LOGLEVEL: DEBUG
app01:
image: ${REGISTRY_URI:-public.ecr.aws/johnpreston/}blog-app01:${IMAGE_TAG:-latest}
build:
context: ./app01
dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 1G
cpus: ".5"
reservations:
memory: 128MB
cpus: "0.25"
ports:
- 5000
healthcheck: &supervisord_healthcheck
test:
- CMD-SHELL
- supervisorctl -c supervisord.config status
retries: 3
interval: 10s
timeout: 5s
app02:
image: ${REGISTRY_URI:-public.ecr.aws/johnpreston/}blog-app02:${IMAGE_TAG:-latest}
build:
context: ./app02
# dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 1G
cpus: ".5"
reservations:
memory: 128MB
cpus: "0.25"
ports:
- 5000
healthcheck:
<<: *supervisord_healthcheck
app03:
image: ${REGISTRY_URI:-public.ecr.aws/johnpreston/}blog-app02:${IMAGE_TAG:-latest}
build:
context: ./app02
# dockerfile: Dockerfile
deploy:
resources:
limits:
memory: 1G
cpus: ".5"
reservations:
memory: 128MB
cpus: "0.25"
ports:
- 5000
healthcheck:
<<: *supervisord_healthcheck