-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from asifbasha61/dev
updated ansible yml and docker-compose according to public and localh…
- Loading branch information
Showing
5 changed files
with
153 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- name: Installing cQube | ||
hosts: localhost | ||
gather_facts: true | ||
remote_user: root | ||
become: true | ||
vars_files: | ||
- ../config_files/config.yml | ||
- ../config_files/program_selector.yml | ||
- ../config_files/aws_s3_config.yml | ||
- ../config_files/azure_container_config.yml | ||
- ../config_files/local_storage_config.yml | ||
- ../config_files/oracle_storage_config.yml | ||
- ../.version | ||
|
||
roles: | ||
- configurations | ||
- postgres | ||
- python | ||
- keycloak | ||
- ingestion | ||
- spec | ||
- generator | ||
- dashboard | ||
- querybuilder | ||
- nifi | ||
- cqube_version |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
- name: copying compose file to ansible directory | ||
template: | ||
src: docker-compose.yml.j2 | ||
src: docker-compose.yml_public.j2 | ||
dest: "docker-compose.yml" | ||
mode: "0644" | ||
tags: install | ||
when: mode_of_installation != "localhost" | ||
tags: [ install, update ] | ||
|
||
#- name: copying compose file to ansible directory | ||
# template: | ||
# src: docker-compose.yml_upgrade.j2 | ||
# dest: "docker-compose.yml" | ||
#mode: "0644" | ||
#tags: update | ||
- name: copying compose file to ansible directory | ||
template: | ||
src: docker-compose.yml_localhost.j2 | ||
dest: "docker-compose.yml" | ||
mode: "0644" | ||
when: mode_of_installation == "localhost" | ||
tags: [ install, update ] |
116 changes: 116 additions & 0 deletions
116
ansible/roles/configurations/templates/docker-compose_localhost.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
version: '2.2' | ||
services: | ||
postgres_app: | ||
container_name: postgres_app | ||
image: postgres_ms:1 | ||
restart: always | ||
ports: | ||
- 5432:5432 | ||
environment: | ||
- POSTGRES_DB={{ db_name }} | ||
- POSTGRES_USER={{ db_user }} | ||
- POSTGRES_PASSWORD={{ db_password }} | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.3" | ||
python_app: | ||
container_name: python_app | ||
image: python_ms:1 | ||
restart: always | ||
volumes: | ||
- python_executable_env:/usr/local/lib/python3.7/site-packages | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.4" | ||
keycloak_app: | ||
container_name: keycloak_app | ||
image: keycloak_ms:1 | ||
restart: always | ||
ports: | ||
- 8080:8080 | ||
environment: | ||
- KEYCLOAK_USER={{ keycloak_adm_name }} | ||
- KEYCLOAK_PASSWORD={{ keycloak_adm_password }} | ||
- PROXY_ADDRESS_FORWARDING=true | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.5" | ||
ingest_app: | ||
container_name: ingest_app | ||
image: ingestion_ms:1 | ||
restart: always | ||
ports: | ||
- 3000:3000 | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.6" | ||
spec_app: | ||
container_name: spec_app | ||
image: spec_ms:1 | ||
restart: always | ||
ports: | ||
- 3001:3001 | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.7" | ||
generator_app: | ||
container_name: generator_app | ||
image: generator_ms:1 | ||
restart: always | ||
ports: | ||
- 3003:3003 | ||
volumes: | ||
- adapter_volume:/python_app/adapter | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.8" | ||
dashboard_app: | ||
container_name: dashboard_app | ||
image: dashboard_ms:1 | ||
restart: always | ||
ports: | ||
- 4200:80 | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.9" | ||
querybuilder_app: | ||
container_name: querybuilder_app | ||
image: querybuilder_ms:1 | ||
restart: always | ||
ports: | ||
- 3002:3002 | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.10" | ||
nifi_app: | ||
container_name: nifi_app | ||
image: nifi_ms:1 | ||
restart: always | ||
ports: | ||
- 8096:8096 | ||
volumes: | ||
- python_executable_env:/usr/local/lib/python3.7/dist-packages | ||
- adapter_volume:/opt/nifi/nifi-current/adapter | ||
environment: | ||
- NIFI_WEB_HTTP_HOST=0.0.0.0 | ||
- NIFI_WEB_HTTP_PORT=8096 | ||
networks: | ||
cqube_net: | ||
ipv4_address: "10.0.0.11" | ||
networks: | ||
cqube_net: | ||
driver: bridge | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: "10.0.0.0/24" | ||
gateway: "10.0.0.1" | ||
name: cqube_net | ||
volumes: | ||
python_executable_env: | ||
driver: local | ||
name: python_executable_env | ||
adapter_volume: | ||
driver: local | ||
name: adapter_volume | ||
|
File renamed without changes.