-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
31 lines (29 loc) · 808 Bytes
/
docker-compose.yml
File metadata and controls
31 lines (29 loc) · 808 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
version: '3.8'
services:
# Backend API Gateway
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- NODE_ENV=production
- PORT=5000
- MONGODB_URI=${MONGODB_URI}
- INFERENCE_SERVER_URL=http://aimodel.ddns.net:8000
- CLERK_PUBLISHABLE_KEY=${CLERK_PUBLISHABLE_KEY}
- CLERK_SECRET_KEY=${CLERK_SECRET_KEY}
- FRONTEND_URL=https://nsfw.techycsr.dev
restart: unless-stopped
networks:
- nsfw-network
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:5000/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
nsfw-network:
driver: bridge