summaryrefslogtreecommitdiffstats
path: root/installation/ansible-server
diff options
context:
space:
mode:
Diffstat (limited to 'installation/ansible-server')
-rw-r--r--installation/ansible-server/pom.xml2
-rw-r--r--installation/ansible-server/src/main/dc/docker-compose.yaml52
2 files changed, 53 insertions, 1 deletions
diff --git a/installation/ansible-server/pom.xml b/installation/ansible-server/pom.xml
index 6bfbbeb3..a76bf357 100644
--- a/installation/ansible-server/pom.xml
+++ b/installation/ansible-server/pom.xml
@@ -5,7 +5,7 @@
<parent>
<groupId>org.onap.sdnc.oam</groupId>
<artifactId>installation</artifactId>
- <version>2.2.1-SNAPSHOT</version>
+ <version>2.3.0-SNAPSHOT</version>
</parent>
<artifactId>installation-ansible-server</artifactId>
diff --git a/installation/ansible-server/src/main/dc/docker-compose.yaml b/installation/ansible-server/src/main/dc/docker-compose.yaml
new file mode 100644
index 00000000..371aabde
--- /dev/null
+++ b/installation/ansible-server/src/main/dc/docker-compose.yaml
@@ -0,0 +1,52 @@
+version: '2.1'
+
+networks:
+ default:
+ driver: bridge
+ driver_opts:
+ com.docker.network.driver.mtu: ${MTU}
+
+
+services:
+
+ db:
+ image: mariadb:10.5
+ container_name: sdnc_db_container
+ ports:
+ - "23306:3306"
+ environment:
+ - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
+ - MYSQL_ROOT_HOST=%
+ - MYSQL_USER=${MYSQL_USER}
+ - MYSQL_PASSWORD=${MYSQL_PASSWORD}
+ - MYSQL_DATABASE=${MYSQL_DATABASE}
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+
+ ansible:
+ image: onap/sdnc-ansible-server-image:latest
+ depends_on :
+ - db
+ container_name: sdnc_ansible_container
+ entrypoint: ["/opt/ansible-server/startAnsibleServer.sh"]
+ ports:
+ - "8000"
+ links:
+ - db:dbhost
+ - db:sdnctldb01
+ - db:sdnctldb02
+ environment:
+ - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
+ - MYSQL_USER=${MYSQL_USER}
+ - MYSQL_PASSWORD=${MYSQL_PASSWORD}
+ - MYSQL_DATABASE=${MYSQL_DATABASE}
+ - ANSIBLE_TRUSTSTORE_PASSWORD=${ANSIBLE_TRUSTSTORE_PASSWORD}
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+