mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -03:30
Merge pull request #7185 from mstrent/devel
Add subnet configuration to Docker Compose to avoid conflicts. Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
80e22ff2ce
@ -154,3 +154,6 @@ secret_key=awxsecret
|
||||
# which makes include "optional" - i.e. not fail
|
||||
# if file is absent
|
||||
#extra_nginx_include="/etc/nginx/awx_extra[.]conf"
|
||||
|
||||
# Docker compose explicit subnet. Set to avoid overlapping your existing LAN networks.
|
||||
#docker_compose_subnet="172.17.0.1/16"
|
||||
|
||||
@ -171,6 +171,17 @@ services:
|
||||
https_proxy: {{ https_proxy | default('') }}
|
||||
no_proxy: {{ no_proxy | default('') }}
|
||||
{% endif %}
|
||||
|
||||
{% if docker_compose_subnet is defined %}
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: {{ docker_compose_subnet }}
|
||||
{% endif %}
|
||||
|
||||
volumes:
|
||||
supervisor-socket:
|
||||
rsyslog-socket:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user