forked from mattwebbio/orbital-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
48 lines (48 loc) · 1.27 KB
/
docker-compose.test.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
version: '2.1'
services:
primary:
image: pihole/pihole:latest
environment:
WEBPASSWORD: primary_password1
healthcheck:
test: ['CMD', 'curl', '-f', 'http://primary/admin/']
interval: 10s
timeout: 10s
retries: 5
secondary:
image: pihole/pihole:latest
environment:
WEBPASSWORD: secondary_password1
healthcheck:
test: ['CMD', 'curl', '-f', 'http://secondary/admin/']
interval: 10s
timeout: 10s
retries: 5
tertiary:
image: pihole/pihole:latest
environment:
WEBPASSWORD: tertiary_password1
healthcheck:
test: ['CMD', 'curl', '-f', 'http://tertiary/admin/']
interval: 10s
timeout: 10s
retries: 5
orbital-sync:
build:
context: .
depends_on:
primary:
condition: service_healthy
secondary:
condition: service_healthy
tertiary:
condition: service_healthy
environment:
PRIMARY_HOST_BASE_URL: 'http://primary'
PRIMARY_HOST_PASSWORD: 'primary_password1'
SECONDARY_HOST_1_BASE_URL: 'http://secondary'
SECONDARY_HOST_1_PASSWORD: 'secondary_password1'
SECONDARY_HOST_2_BASE_URL: 'http://tertiary'
SECONDARY_HOST_2_PASSWORD: 'tertiary_password1'
RUN_ONCE: 'true'
VERBOSE: 'true'