-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.35 KB
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
version: "3.3"
services:
mongodb:
container_name: mongo
image: mongo:4.2
restart: always
backend:
container_name: backend
image: ghcr.io/harvestcore/matroos-backend:latest
restart: always
depends_on:
- mongodb
ports:
- "7000:80"
environment:
- Workers=http://worker1/;http://worker2/
- MongoDBConnectionString=mongodb://mongodb:27017/matroos
- MongoDBDatabaseName=matroos
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3
worker1:
container_name: worker1
image: ghcr.io/harvestcore/matroos-worker:latest
restart: always
ports:
- "7001:80"
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3
worker2:
container_name: worker2
image: ghcr.io/harvestcore/matroos-worker:latest
restart: always
ports:
- "7002:80"
healthcheck:
test: curl --fail -s http://localhost/health || exit 1
interval: 30s
timeout: 10s
retries: 3