-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (29 loc) · 1.4 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
version: '3.2'
services:
consul:
build:
context: .
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
#- /host/data:/var/consul # volume for data
environment:
- CONSUL_VERSION=${CONSUL_VERSION}
- CONSULTEMPLATE_VERSION=${CONSULTEMPLATE_VERSION}
- CONSUL_OPTIONS=${CONSUL_OPTIONS} # 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