-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 813 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 813 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
services:
sgiprealestate:
build:
context: .
dockerfile: Dockerfile
args:
PORT: ${PORT}
container_name: sgiprealestate-service
ports:
- "${PORT:-4300}:${PORT:-4300}"
env_file:
- .env
environment:
- NODE_ENV=production
- PORT=${PORT}
- DATABASE_URL=${DATABASE_URL}
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL}
networks:
- nginx-network
deploy:
resources:
limits:
memory: 768M
cpus: '1.0'
reservations:
memory: 256M
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:${PORT}/api/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 120s
networks:
nginx-network:
external: true