-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (36 loc) · 870 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (36 loc) · 870 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:
jyotish_api:
build:
context: ./api
dockerfile: Dockerfile
container_name: jyotish_api
restart: unless-stopped
ports:
- "127.0.0.1:${HOST_PORT:-9393}:8080"
env_file:
- ./api/.env
environment:
APP_ENV: prod
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
jyotish_frontend:
build:
context: .
dockerfile: frontend/Dockerfile
container_name: jyotish_frontend
restart: unless-stopped
ports:
- "127.0.0.1:${FRONTEND_PORT:-8000}:80"
depends_on:
jyotish_api:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:80/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s