-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (37 loc) · 825 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (37 loc) · 825 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
39
40
version: "3.8"
services:
protoforge:
build: .
ports:
- "8000:8000"
- "5020:5020"
- "4840:4840"
- "1883:1883"
- "5060:5060/udp"
- "47808:47808/udp"
- "102:102"
volumes:
- protoforge-data:/app/data
environment:
- PROTOFORGE_LOG_LEVEL=info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
restart: unless-stopped
protoforge-test:
build: .
command: ["python", "-m", "pytest", "tests/", "-v", "--tb=short"]
volumes:
- ./:/app
depends_on:
protoforge:
condition: service_healthy
environment:
- PROTOFORGE_TEST_URL=http://protoforge:8000
profiles:
- test
volumes:
protoforge-data: