-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
34 lines (34 loc) · 1.01 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
version: '3'
services:
test:
build: .
environment:
# RQLITE_HOSTS: http://rqlite-master:4001,http://rqlite-replicate-0,http://rqlite-replicate-1:4001
RQLITE_HOSTS: http://rqlite-master:4001
depends_on:
- rqlite-master
# - rqlite-replicate-0
# - rqlite-replicate-1
rqlite-master:
build:
context: ./docker/rqlite-master
dockerfile: Dockerfile
healthcheck:
test: ["CMD", "curl", "http://localhost:4001/status"]
# Commenting out replicates since they can't get a heartbeat in docker compose
# rqlite-replicate-0:
# build:
# context: ./docker/rqlite-replicate-0
# dockerfile: Dockerfile
# depends_on:
# - rqlite-master
# healthcheck:
# test: ["CMD", "curl", "http://localhost:4001/status"]
# rqlite-replicate-1:
# build:
# context: ./docker/rqlite-replicate-1
# dockerfile: Dockerfile
# depends_on:
# - rqlite-master
# healthcheck:
# test: ["CMD", "curl", "http://localhost:4001/status"]