forked from veronicawong3042/baby-steps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
36 lines (33 loc) · 808 Bytes
/
compose.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
version: '3.9'
services:
backend:
restart: unless-stopped
build:
context: backend
dockerfile: Dockerfile
ports:
- mode: ingress
target: 3000
deploy:
resources:
reservations:
memory: 0.5G
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/questions"]
frontend:
domainname: learn.babysteps.study
restart: unless-stopped
build:
context: frontend
dockerfile: Dockerfile
args:
REACT_APP_SERVER: https://commit111-backend--3000.prod1.defang.dev/
ports:
- mode: ingress
target: 3000
deploy:
resources:
reservations:
memory: 1G
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/"]