-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.skeleton.yml
More file actions
55 lines (50 loc) · 1.75 KB
/
docker-compose.skeleton.yml
File metadata and controls
55 lines (50 loc) · 1.75 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
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
#-------------------------------------------------------------------
# PYTHON
#-------------------------------------------------------------------
python:
depends_on:
- consul
image: zeroc0d3lab/centos-python
ports:
- "${PYTHON_PORT}:22"
volumes:
- /etc/localtime:/etc/localtime:ro
- ${PATH_APPLICATION}:/home/docker/workspace
environment:
- CONSUL_PYTHON_AGENT=${CONSUL_PYTHON_AGENT} # consul agent hostname/IP
#- CONSUL_PYTHON_PORT=8500 # consul agent port
#- CONSUL_PYTHON_KEYPREFIX=path/prefix/ # consul key prefix path
- CONSUL_PYTHON_SERVICENAME=python # consul service name
- CONSUL_PYTHON_SERVICETAGS=dev # consul service tag
- CONSUL_PYTHON_SERVICEPORT=22 # consul service port
- CONSUL_PYTHON_CHECKTYPE=tcp # consul health check type
networks:
- frontend
- backend
#-------------------------------------------------------------------
# NETWORK SETUP
#-------------------------------------------------------------------
networks:
frontend:
driver: "bridge"
backend:
driver: "bridge"
#-------------------------------------------------------------------
# VOLUME SETUP
#-------------------------------------------------------------------
volumes:
python:
driver: "local"