-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.consul.yml
30 lines (28 loc) · 1.02 KB
/
docker-compose.consul.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:
image: bhuisgen/alpine-consul
ports:
- "8500:8500"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- CONSUL_OPTIONS=-server -bootstrap-expect 1 -client 0.0.0.0 -ui # minimal server options
gogs:
depends_on:
- consul
image: bhuisgen/alpine-gogs
ports:
- "3000:3000"
- "2222:22"
volumes:
- /etc/localtime:/etc/localtime:ro
#- /srv/data:/var/lib/gogs
environment:
- CONSUL_AGENT=consul # consul agent hostname/IP
#- CONSUL_PORT=8500 # consul agent port
#- CONSUL_KEYPREFIX=path/prefix/ # consul key prefix path
- CONSUL_SERVICENAME=gogs # consul service name
- CONSUL_SERVICETAGS=gogs # consul service tag
- CONSUL_SERVICEPORT=3000 # consul service port
- CONSUL_CHECKTYPE=tcp # consul health check type