mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -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:
@@ -154,3 +154,6 @@ secret_key=awxsecret
|
|||||||
# which makes include "optional" - i.e. not fail
|
# which makes include "optional" - i.e. not fail
|
||||||
# if file is absent
|
# if file is absent
|
||||||
#extra_nginx_include="/etc/nginx/awx_extra[.]conf"
|
#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('') }}
|
https_proxy: {{ https_proxy | default('') }}
|
||||||
no_proxy: {{ no_proxy | default('') }}
|
no_proxy: {{ no_proxy | default('') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if docker_compose_subnet is defined %}
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: {{ docker_compose_subnet }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
supervisor-socket:
|
supervisor-socket:
|
||||||
rsyslog-socket:
|
rsyslog-socket:
|
||||||
|
|||||||
Reference in New Issue
Block a user