Merge pull request #1080 from Xiol/feat-projects-vol

Allow AWX projects directory to be a volume
This commit is contained in:
Matthew Jones 2018-02-01 13:17:34 -05:00 committed by GitHub
commit b89d4349c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -90,3 +90,7 @@ pg_port=5432
#awx_container_search_domains=example.com,ansible.com
# Alternate DNS servers
#awx_alternate_dns_servers="10.1.2.3,10.2.3.4"
# AWX project data folder. If you need access to the location where AWX stores the projects
# it manages from the docker host, you can set this to turn it into a volume for the container.
#project_data_dir=/var/lib/awx/projects

View File

@ -79,6 +79,7 @@
state: started
restart_policy: unless-stopped
image: "{{ awx_web_docker_actual_image }}"
volumes: "{{ project_data_dir + ':/var/lib/awx/projects:rw' if project_data_dir is defined else omit }}"
user: root
ports:
- "{{ host_port }}:8052"
@ -112,6 +113,7 @@
state: started
restart_policy: unless-stopped
image: "{{ awx_task_docker_actual_image }}"
volumes: "{{ project_data_dir + ':/var/lib/awx/projects:rw' if project_data_dir is defined else omit }}"
links: "{{ awx_task_container_links|list }}"
user: root
hostname: awx