-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
116 lines (110 loc) · 3.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
116 lines (110 loc) · 3.57 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: "3.8"
networks:
switchover-net: {}
x-common-variables:
&common-variables #LOG_LEVEL: websockets.server=WARN,kube=WARN,logic=DEBUG,peers.client=WARN,peers.client_fwd=WARN,peers.server=WARN,clients.dns=WARN,clients.kube=WARN,clients.kube_stream=WARN,root=WARN
TLS_CA: /config/tls/rootCA.crt
TLS_LOCAL_CRT: /config/tls/switchover-peer.crt
TLS_LOCAL_KEY: /config/tls/switchover-peer.key
AUTOMATION_ENABLED: "true"
KUBE_NAMESPACE: 000000-dev
KUBE_HEALTH_NAMESPACE: 000000-tools
KUBE_TEKTON_NAMESPACE: 000000-tools
#PROCESS_LIST: logic_handler,dns_watch
PROCESS_LIST: logic_handler,kube_watch,dns_watch,patroni_worker,tekton_watch,peer_server,peer_client,peer_client_fwd,tick_producer
ENVIRONMENT: local
GSLB_DOMAIN: mock.localtest.me
#PATRONI_LOCAL_API: http://mock.localtest.me:8000/patroni
PATRONI_PEER_HOST: patroni-peer.local
PATRONI_PEER_PORT: 10000
#MAINTENANCE_URL: http://mock.localtest.me:8000/maintenance
#TEKTON_URL: http://mock.localtest.me:8000/tekton
TEKTON_GITHUB_REF: "refs/heads/deploy/dev"
TEKTON_HMAC_SECRET: ""
TEKTON_GITHUB_REPO: https://github.com/bcgov-dss/api-serv-infra.git
TERRAFORM_TFVARS: terraform-pipeline-local-tfvars
# DNS_SERVICE_URL: http://mock-active.localtest.me:8000/dns
KEYCLOAK_SELECTOR: app.kubernetes.io/name=keycloak
PIPELINE_RETRY_INTERVAL_SECONDS: "30"
PIPELINE_ATTEMPT_TIMEOUT_SECONDS: "360"
PIPELINE_MAX_RETRIES: "2"
PIPELINE_RETRY_TOTAL_CAP_SECONDS: "120"
services:
switchover-agent-active:
image: agent.local:latest
container_name: switchover-agent-active
ports:
- 6666:8000
volumes:
- ./local:/config
- ./local/kube/active:/root/.kube
environment:
<<: *common-variables
KUBE_CLUSTER: gold
PEER_HOST: agent-passive.localtest.me
PEER_PORT: 8765
PATRONI_LOCAL_API: http://mock-active.localtest.me:8000/patroni
MAINTENANCE_URL: http://mock-active.localtest.me:8000/maintenance
TEKTON_URL: http://mock-active.localtest.me:8000/tekton
DNS_SERVICE_URL: http://mock-active.localtest.me:8000/dns
build:
context: .
dockerfile: Dockerfile
networks:
switchover-net:
aliases:
- agent-active.localtest.me
depends_on:
- mock-active
switchover-agent-passive:
image: agent.local:latest
container_name: switchover-agent-passive
volumes:
- ./local:/config
- ./local/kube/passive:/root/.kube
environment:
<<: *common-variables
KUBE_CLUSTER: golddr
PEER_HOST: agent-active.localtest.me
PEER_PORT: 8765
PATRONI_LOCAL_API: http://mock-passive.localtest.me:8000/patroni
MAINTENANCE_URL: http://mock-passive.localtest.me:8000/maintenance
TEKTON_URL: http://mock-passive.localtest.me:8000/tekton
DNS_SERVICE_URL: http://mock-passive.localtest.me:8000/dns
build:
context: .
dockerfile: Dockerfile
networks:
switchover-net:
aliases:
- agent-passive.localtest.me
depends_on:
- mock-passive
mock-active:
image: agent-mock.local:latest
container_name: mock-active
environment:
LOG_LEVEL: INFO
ports:
- 6664:8000
build:
context: .
dockerfile: Dockerfile.mock
networks:
switchover-net:
aliases:
- mock-active.localtest.me
mock-passive:
image: agent-mock.local:latest
container_name: mock-passive
environment:
LOG_LEVEL: INFO
ports:
- 6665:8000
build:
context: .
dockerfile: Dockerfile.mock
networks:
switchover-net:
aliases:
- mock-passive.localtest.me