-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.api.yml
More file actions
37 lines (35 loc) · 900 Bytes
/
Copy pathdocker-compose.api.yml
File metadata and controls
37 lines (35 loc) · 900 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
version: '3.8'
services:
api:
build:
context: ./backend/api
dockerfile: Dockerfile
container_name: medical-tourism-api
ports:
- "3001:3001"
environment:
- NODE_ENV=production
- PORT=3001
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- JWT_EXPIRES_IN=1d
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost:3000}
- TWILIO_ACCOUNT_SID=${TWILIO_ACCOUNT_SID}
- TWILIO_AUTH_TOKEN=${TWILIO_AUTH_TOKEN}
- NEXTAUTH_URL=${NEXTAUTH_URL}
volumes:
- ./backend/api:/app
- /app/node_modules
restart: unless-stopped
networks:
- medical-tourism-network
depends_on:
- postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
medical-tourism-network:
external: true