-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
89 lines (84 loc) · 2.2 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3.3"
services:
bifrost:
image: bifrost:cFS
build: .
container_name: bifrost
ports:
- 8000:8000
extra_hosts:
- "fss:192.168.99.3"
volumes:
- /gds:/gds:z
env_file: bifrost.env
networks: ["bifrost-network"]
depends_on:
nats:
condition: service_healthy
influx:
condition: service_healthy
healthcheck:
test: "curl -f bifrost:8000/"
interval: 5s
timeout: 5s
retries: 5
start_period: 30s
#entrypoint: ["bash"]
nats:
image: nats:alpine
container_name: nats
ports:
- "8222:8222"
command: '--server_name nats-bifrost --jetstream --http_port 8222'
networks: ["bifrost-network"]
healthcheck:
test: "wget --server-response localhost:8222/healthz 2>&1 | grep '200 OK' || exit 1"
interval: 2s
timeout: 5s
retries: 5
#entrypoint: ["ash"]
influx:
image: influxdb:latest
container_name: influx
networks: ["bifrost-network"]
environment:
# Be sure to match the equivalent values in the bifrost.env file
# TIP to recover tokens: docker exec influx influx auth list | awk '/$DOCKER_INFLUXDB_INIT_USERNAME/ {print $4 " "}'
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=rootroot
- DOCKER_INFLUXDB_INIT_PASSWORD=rootroot
- DOCKER_INFLUXDB_INIT_ORG=Mithril
- DOCKER_INFLUXDB_INIT_BUCKET=Tuatha_de_Danaan
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=AtoTallYLegiTKey
ports:
- 8086:8086
volumes:
- /gds/influx/data:/var/lib/influxdb2:z
- /gds/influx/config:/etc/influxdb2:z
healthcheck:
test: "curl -f influx:8086/"
interval: 2s
timeout: 5s
retries: 5
nats-cli:
image: nats-cli
build: ./nats-cli/
container_name: nats-cli
networks: ["bifrost-network"]
depends_on:
nats:
condition: service_healthy
entrypoint: ["bash"]
openmct:
image: openmct:latest
build: ./Bifrost/openmct/
container_name: openmct
ports:
- "8081:8081"
networks: ["bifrost-network"]
depends_on:
bifrost:
condition: service_healthy
networks:
bifrost-network:
name: bifrost-network