-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.31 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
49
50
51
52
53
54
55
# Minimal Facet quickstart
services:
mongodb:
image: mongo:8.0
container_name: facet-mongo
volumes:
- mongo-data:/data/db
- ./etc/init-data.js:/docker-entrypoint-initdb.d/init-data.js:ro
networks:
- facet-network
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
facet:
build:
context: .
dockerfile: Dockerfile
image: facet-quickstart:latest
container_name: facet
depends_on:
mongodb:
condition: service_healthy
ports:
- "8080:8080"
environment:
RHO: >
/mclient/connection-string->"mongodb://mongodb";
/pebble-template-processor/enabled->true;
/http-listener/host->"0.0.0.0";
volumes:
- ./etc/restheart.yml:/opt/restheart/etc/restheart.yml:ro
- ./etc/users.yml:/opt/restheart/etc/users.yml:ro
- ./templates:/opt/restheart/templates:ro
- ./static:/opt/restheart/static:ro
networks:
- facet-network
healthcheck:
test: curl -f http://localhost:8080/ping || exit 1
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
mongo-data:
name: facet-mongo-data
networks:
facet-network:
name: facet-network
driver: bridge