-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (46 loc) · 972 Bytes
/
docker-compose.yml
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
version: '3.8'
services:
nginx:
image: ghcr.io/ai-cfia/nginx:latest
ports:
- "80:80"
environment:
- BACKEND_PORT=8080
- FRONTEND_PORT=3000
depends_on:
- backend
- frontend
networks:
- nachet-network
backend:
image: ghcr.io/ai-cfia/nachet-backend:main
command: ["/bin/sh", "-c", "hypercorn -b :8080 app:app"]
ports:
- "8080:8080"
env_file:
- .env
environment:
- PORT=8080
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
networks:
- nachet-network
frontend:
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 5
networks:
- nachet-network
networks:
nachet-network:
driver: bridge