-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.skeleton.yml
More file actions
58 lines (53 loc) · 1.86 KB
/
docker-compose.skeleton.yml
File metadata and controls
58 lines (53 loc) · 1.86 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
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
#-------------------------------------------------------------------
# NODEJS
#-------------------------------------------------------------------
nodejs:
depends_on:
- consul
image: zeroc0d3lab/centos-nodejs
ports:
- "${NODEJS_PORT}:22"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${PATH_APPLICATION}:/home/docker/workspace
environment:
- CONSUL_NODEJS_AGENT=${CONSUL_NODEJS_AGENT} # consul agent hostname/IP
#- CONSUL_NODEJS_PORT=8500 # consul agent port
#- CONSUL_NODEJS_KEYPREFIX=path/prefix/ # consul key prefix path
- CONSUL_NODEJS_SERVICENAME=nodejs # consul service name
- CONSUL_NODEJS_SERVICETAGS=dev # consul service tag
- CONSUL_NODEJS_SERVICEPORT=22 # consul service port
- CONSUL_NODEJS_CHECKTYPE=tcp # consul health check type
- NODE_VERSION=${NODE_VERSION}
- NPM_VERSION=${NPM_VERSION}
- YARN_VERSION=${YARN_VERSION}
networks:
- frontend
- backend
#-------------------------------------------------------------------
# NETWORK SETUP
#-------------------------------------------------------------------
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
#-------------------------------------------------------------------
# VOLUME SETUP
#-------------------------------------------------------------------
volumes:
nodejs:
driver: "local"