-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (81 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (81 loc) · 2.05 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
services:
jyotish_api:
build:
context: ./api
dockerfile: Dockerfile
container_name: jyotish_api
restart: unless-stopped
ports:
- "${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
app_backend:
build:
context: ./mobile-app-backend
dockerfile: Dockerfile
container_name: app_backend
restart: unless-stopped
ports:
- "${APP_BACKEND_PORT:-5656}:5656"
volumes:
- app_backend_data:/app/data
depends_on:
mongodb:
condition: service_healthy
environment:
MONGODB_URI: mongodb://mongodb:27017/jyotish
mongodb:
image: mongo:7
container_name: mongodb
restart: unless-stopped
ports:
- "${MONGODB_PORT:-27017}:27017"
volumes:
- mongodb_data:/data/db
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
mongo-express:
image: mongo-express:latest
container_name: mongo-express
restart: unless-stopped
ports:
- "127.0.0.1:${MONGO_EXPRESS_PORT:-8091}:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/
ME_CONFIG_BASICAUTH_USERNAME: ${MONGO_EXPRESS_USERNAME:-webuser}
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGO_EXPRESS_PASSWORD:-webpassword}
depends_on:
mongodb:
condition: service_healthy
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
volumes:
app_backend_data:
mongodb_data: