-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
70 lines (70 loc) · 1.72 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3"
services:
integration_tests_py36:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.6
volumes:
- .:/src
depends_on: [consul1, consul2, consul3, consul4]
command:
["tox", "-e", "py36"]
integration_tests_py37:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.7
volumes:
- .:/src
depends_on: [consul1, consul2, consul3, consul4]
command:
["tox", "-e", "py37"]
integration_tests_py38:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.8
volumes:
- .:/src
depends_on: [consul1, consul2, consul3, consul4]
command:
["tox", "-e", "py38"]
integration_tests_py39:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.9
volumes:
- .:/src
depends_on: [consul1, consul2, consul3, consul4]
command:
["tox", "-e", "py39"]
lint:
build:
context: .
dockerfile: Dockerfile
args:
PYTHON_VERSION: 3.5
volumes:
- .:/src
command:
["tox", "-e", "lint"]
consul1:
image: consul:1.15.4
ports:
- 8500:8500
command: 'agent -client=0.0.0.0 -datacenter=test -server -bootstrap -node=consul1 -ui'
consul2:
image: consul:1.15.4
command: 'agent -client=0.0.0.0 -datacenter=test -retry-join consul1 -retry-interval 1s -node=consul2'
consul3:
image: consul:1.15.4
command: 'agent -client=0.0.0.0 -datacenter=test -retry-join consul1 -retry-interval 1s -node=consul3'
consul4:
image: consul:1.15.4
command: 'agent -client=0.0.0.0 -datacenter=test -retry-join consul1 -retry-interval 1s -node=consul4'