-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.57 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3.2'
services:
#-------------------------------------------
# CONSUL
#-------------------------------------------
consul:
image: zeroc0d3lab/centos-consul
ports:
- "8500:8500"
volumes:
- /etc/localtime:/etc/localtime:ro
environment:
- CONSUL_OPTIONS=${CONSUL_OPTIONS} # minimal server options
#-------------------------------------------------------------------
# VIM
#-------------------------------------------------------------------
vim:
depends_on:
- consul
build:
context: .
ports:
- "${VIM_PORT}:22"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${PATH_APPLICATION}:/home/docker/workspace
environment:
- VIM_VERSION=${VIM_VERSION}
- LUA_VERSION=${LUA_VERSION}
- LUAROCKS_VERSION=${LUAROCKS_VERSION}
- CONSUL_VIM_AGENT=${CONSUL_VIM_AGENT} # consul agent hostname/IP
#- CONSUL_VIM_PORT=8500 # consul agent port
#- CONSUL_VIM_EFIX=path/prefix/ # consul key prefix path
- CONSUL_VIM_NAME=vim # consul service name
- CONSUL_VIM_TAGS=dev # consul service tag
- CONSUL_VIM_PORT=22 # consul service port
- CONSUL_VIM_TYPE=tcp # consul health check type
#-------------------------------------------------------------------
# VOLUME SETUP
#-------------------------------------------------------------------
volumes:
vim:
driver: "local"