-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
44 lines (43 loc) · 980 Bytes
/
compose.yaml
File metadata and controls
44 lines (43 loc) · 980 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
services:
db:
image: postgres:15
restart: unless-stopped
x-defang-postgres: true
environment:
- POSTGRES_PASSWORD
ports:
- mode: host
target: 5432
published: 5432
cards:
restart: unless-stopped
build:
context: ./client
dockerfile: Dockerfile
args:
- REACT_APP_API_URL=https://kevyvo-server--3010.prod1.defang.dev #replace <YOUR_USERNAME> with your username
ports:
- mode: ingress
target: 3000
published: 3000
deploy:
resources:
reservations:
memory: 2GB
depends_on:
- server
server:
restart: unless-stopped
build:
context: ./server
dockerfile: Dockerfile
ports:
- target: 3010
mode: ingress
published: 3010
environment:
- DATABASE_URL=postgres://postgres:${POSTGRES_PASSWORD}@db:5432/postgres
#deploy:
# resources:
# reservations:
# memory: 256M