-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·32 lines (30 loc) · 1.5 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
version: '3.2'
services:
#================================================================================================
# CORE-CONSUL
#================================================================================================
consul:
image: dockerframework/core-consul:latest
ports:
- "8300:8300" # server RPC
- "8301:8301" # serf LAN
- "8301:8301/udp" # serf LAN (UDP)
- "8302:8302" # serf WAN
- "8302:8302/udp" # serf WAN (UDP)
- "8500:8500" # HTTP
- "8501:8501" # HTTPS
- "8600:8600" # DNS
- "8600:8600/udp" # DNS (UDP)
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- CONSUL_VERSION=1.2.2
- CONSULTEMPLATE_VERSION=0.19.5
- CONSUL_OPTIONS=-server -bootstrap-expect 1 -client 0.0.0.0 -ui # minimal server options
- CONSUL_DATACENTER=local # datacenter
- CONSUL_DOMAIN=consul # domain name
- CONSUL_ENCRYPT=h2N6R1eyTysjBzzXxAWJvA== # encryption key
- CONSUL_TLS=1 # enable TLS
- CONSUL_TLSCAFILE=/etc/consul.d/ssl/ca.pem # TLS CA certificate file
- CONSUL_TLSCERTFILE=/etc/consul.d/ssl/server.pem # TLS server certificate file
- CONSUL_TLSKEYFILE=/etc/consul.d/ssl/server-priv-key.pem # TLS server certificate key file