-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 820 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
39 lines (37 loc) · 820 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
services:
guptarealty:
build: .
expose:
- "8080"
deploy:
resources:
limits:
memory: 768M
environment:
- JAVA_OPTS=-Xmx512m
- PORT=8080
- ASSETS_PATH=/app/assets
- BEARER_TOKEN=${BEARER_TOKEN}
- FUB_API_KEY=${FUB_API_KEY}
volumes:
- assets_data:/app/assets
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- assets_data:/app/assets:ro
depends_on:
guptarealty:
condition: service_healthy
restart: unless-stopped
volumes:
assets_data: