-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.yaml
44 lines (44 loc) · 871 Bytes
/
react.yaml
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
services:
react:
build:
context: $REACT_ROOT
args:
NODE_ENV: $NODE_ENV
image: $PROJECT/react:${IMAGES_TAG:-latest}
user: react
networks:
internal:
read_only: true
tmpfs:
- /srv/.npm/
- /srv/.next/cache/
expose:
- 3000
healthcheck:
test: wget http://react:3000 -q -O - > /dev/null
start_period: 60s
start_interval: 1s
interval: 60s
timeout: 60s
retries: 3
restart: unless-stopped
depends_on:
django:
condition: service_healthy
cap_drop:
- ALL
deploy:
resources:
limits:
memory: 1000M
reservations:
cpus: "0.2"
memory: 250M
logging:
options:
max-file: "3"
max-size: "10m"
nginx:
depends_on:
react:
condition: service_healthy