-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 819 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 819 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
38
---
networks:
opsie_mesh:
driver: bridge
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: opsie-backend:v1.0.0
restart: unless-stopped
networks:
- opsie_mesh
env_file: .env
ports:
- "8000:8000"
healthcheck:
test: ["CMD-SHELL", "python -c 'import urllib.request; urllib.request.urlopen(\"http://localhost:8000/health\").getcode() == 200'"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
bot:
build:
context: ./bot
dockerfile: Dockerfile
image: opsie-bot:v1.0.0
restart: unless-stopped
networks:
- opsie_mesh
env_file: .env
environment:
- BACKEND_URL=http://backend:8000/v1/chat
depends_on:
backend:
condition: service_healthy