forked from nautobot/nautobot-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 846 Bytes
/
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
---
version: "3.4"
x-args:
&args
PYTHON_VER: ${PYTHON_VER}
# Build block with context and target default
x-build:
&build
args: *args
context: .
target: unittests
x-service:
&service
environment:
ANSIBLE_INTEGRATION_ARGS: ${ANSIBLE_INTEGRATION_ARGS:-}
ANSIBLE_SANITY_ARGS: ${ANSIBLE_SANITY_ARGS:-}
ANSIBLE_UNIT_ARGS: ${ANSIBLE_UNIT_ARGS:-}
NAUTOBOT_VER: ${INVOKE_NAUTOBOT_ANSIBLE_NAUTOBOT_VER:-}
services:
unit:
<<: *service
build:
<<: *build
lint:
<<: *service
build:
<<: *build
target: lint
integration:
<<: *service
build:
<<: *build
target: integration
networks:
- integration_network
# Attach these services to the Nautobot network that gets spun up from invoke start
networks:
integration_network:
name: nautobot_ansible_default