From be3900b34f6620b27bdf945593426051e95db0d6 Mon Sep 17 00:00:00 2001 From: Kostis Trantzas Date: Fri, 8 Dec 2023 18:27:17 +0200 Subject: [PATCH] Removes unused docker-compose files. Fixes #9. --- compose/docker-compose-develop.yaml | 124 ---------- compose/docker-compose2.yaml | 345 ---------------------------- 2 files changed, 469 deletions(-) delete mode 100644 compose/docker-compose-develop.yaml delete mode 100644 compose/docker-compose2.yaml diff --git a/compose/docker-compose-develop.yaml b/compose/docker-compose-develop.yaml deleted file mode 100644 index 417c032..0000000 --- a/compose/docker-compose-develop.yaml +++ /dev/null @@ -1,124 +0,0 @@ -version: '3.4' -services: - - artemis: - container_name: anartemis - image: apache/activemq-artemis:2.30.0 - restart: always - ports: - - 8161:8161 - - 61616:61616 - - 61613:61613 - volumes: - - /var/log/activemq:/var/log/activemq - networks: - - back - - - nginx: - container_name: anginx - image: nginx - restart: always - ports: - - 80:80 - - 443:443 - volumes: - - ./nginx/nginx.conf:/etc/nginx/nginx.conf - - ./nginx/certificates:/etc/nginx/certificates - - ../../org.etsi.osl.portal.web/src:/webstatic/nfvportal - - ../../org.etsi.osl.tmf.web/dist/io-openslice-portal-web:/webstatic/services - networks: - - front - - mysql-portal: - container_name: amysql - image: mysql:5.7 - environment: - MYSQL_ROOT_PASSWORD: letmein - MYSQL_DATABASE: osdb - MYSQL_USER: portaluser - MYSQL_PASSWORD: 12345 - MYSQL_ROOT_HOST: "%" - ports: - - "3306:3306" - volumes: - - ./mysql/data:/var/lib/mysql - - ./mysql-init:/docker-entrypoint-initdb.d - restart: always - networks: - - back - - keycloak: - image: jboss/keycloak:13.0.1 - container_name: akeycloak - restart: always - environment: - DB_VENDOR: MYSQL - DB_ADDR: amysql - DB_DATABASE: keycloak - DB_USER: keycloak - DB_PASSWORD: password - KEYCLOAK_USER: admin - KEYCLOAK_PASSWORD: Pa55w0rd - JDBC_PARAMS: "useSSL=false" - # Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the MySQL JDBC driver documentation in order to use it. - #JDBC_PARAMS: "connectTimeout=30000" - JAVA_OPTS: "-server -Xms512m -Xmx2048m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseAdaptiveSizePolicy -XX:MaxMetaspaceSize=1024m -Djava.net.preferIPv4Stack=true -Djboss.as.management.blocking.timeout=3600" - KEYCLOAK_IMPORT: /tmp/realm-export.json - PROXY_ADDRESS_FORWARDING: "true" - volumes: - - ./keycloak-init:/tmp - ports: - - 8080:8080 - - 8443:8443 - depends_on: - - mysql-portal - networks: - - front - - back - - portainer: - container_name: portainer - image: portainer/portainer-ce:2.18.4 - restart: always - networks: - - front - ports: - - 9000:9000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - portainer_data:/data - - - kroki: - image: yuzutech/kroki - restart: always - depends_on: - - blockdiag - environment: - - KROKI_BLOCKDIAG_HOST=blockdiag - ports: - - "8000:8000" - - blockdiag: - image: yuzutech/kroki-blockdiag - expose: - - "8001" - - -networks: - front: - driver: bridge - driver_opts: - com.docker.network.driver.mtu: 1450 - back: - driver: bridge - driver_opts: - com.docker.network.driver.mtu: 1450 - - -volumes: - portainer_data: - - # "spring.cloud.consul.discovery.healthCheckUrl=http://abugzilla:8080/status" - #openzipkin/zipkin diff --git a/compose/docker-compose2.yaml b/compose/docker-compose2.yaml deleted file mode 100644 index a3b216e..0000000 --- a/compose/docker-compose2.yaml +++ /dev/null @@ -1,345 +0,0 @@ -version: '3.4' -services: - - artemis: - container_name: anartemis - image: apache/activemq-artemis:2.30.0 - restart: always - profiles: ["dev", "prod"] - ports: - - 8161:8161 - - 61616:61616 - - 61613:61613 - volumes: - - /var/log/activemq:/var/log/activemq - networks: - - back - - nginx: - container_name: anginx - image: nginx - restart: always - profiles: ["dev", "prod"] - ports: - - 80:80 - - 443:443 - volumes: - - ./nginx/nginx.conf:/etc/nginx/nginx.conf - - ./nginx/certificates:/etc/nginx/certificates - - ../../org.etsi.osl.portal.web/src:/webstatic/nfvportal - - ../../org.etsi.osl.tmf.web/dist/io-openslice-portal-web:/webstatic/services - networks: - - front - - mysql-portal: - container_name: amysql - restart: always - image: mysql:5.7 - profiles: ["dev", "prod"] - environment: - MYSQL_ROOT_PASSWORD: letmein -# MYSQL_DATABASE: osdb -# MYSQL_USER: portaluser -# MYSQL_PASSWORD: 12345 - MYSQL_ROOT_HOST: "%" - ports: - - "13306:3306" - volumes: - - ~/mysql/data:/var/lib/mysql - - ./mysql-init:/docker-entrypoint-initdb.d - networks: - - back - - keycloak: - container_name: keycloak - image: quay.io/keycloak/keycloak:22.0.1 - restart: always - profiles: ["dev", "prod"] - environment: - DB_VENDOR: MYSQL - DB_ADDR: amysql - DB_DATABASE: keycloak - DB_USER: keycloak - DB_PASSWORD: password - KEYCLOAK_ADMIN: admin - KEYCLOAK_ADMIN_PASSWORD: Pa55w0rd - JDBC_PARAMS: "useSSL=false" - JAVA_OPTS: "-server -Xms512m -Xmx2048m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseAdaptiveSizePolicy -XX:MaxMetaspaceSize=1024m -Djava.net.preferIPv4Stack=true -Djboss.as.management.blocking.timeout=3600" - KEYCLOAK_IMPORT: /tmp/realm-export.json - PROXY_ADDRESS_FORWARDING: "true" - command: - - start-dev - - --import-realm - volumes: - - ./keycloak-init:/tmp - - ./keycloak-ini/realm-export.json:/opt/keycloak/data/import/realm.json - ports: - - 8080:8080 - - 8443:8443 - depends_on: - - mysql-portal - networks: - - front - - back - - - osportalapi: - container_name: openslice-portalapi - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.portal.api/ - dockerfile: Dockerfile.portalapi - image: org.etsi.osl.portal.api:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.datasource.url": "jdbc:mysql://amysql/osdb?createDatabaseIfNotExist=true", - "spring.datasource.username":"root", - "spring.datasource.password":"letmein", - "spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice", - "spring-addons.issuers[0].username-json-path":"$.preferred_username", - "spring-addons.issuers[0].claims[0].jsonPath":"$.realm_access.roles", - "spring-addons.issuers[0].claims[1].jsonPath":"$.resource_access.*.roles", - "spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice", - "springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth", - "springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token", - "springdoc.oauth.client-id" : "osapiWebClientId", - "springdoc.oauth.clientsecret" : "secret", - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "logging.level.org.springframework" : "INFO" - }' - volumes: - - ./repo:/root - ports: - - 13000:13000 - networks: - - front - - back - depends_on: - - mysql-portal - - - manoclient: - container_name: manoclient - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.mano/ - dockerfile: Dockerfile.mano - image: org.etsi.osl.mano:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "logging.level.org.springframework" : "INFO" - }' - ports: - - 13011:13011 - networks: - - back - - - bugzilla: - container_name: abugzilla - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.bugzilla/ - dockerfile: Dockerfile.bugzilla - image: org.etsi.osl.bugzilla:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "bugzillaurl":"", - "bugzillakey":"", - "main_operations_product":"" - }' - ports: - - 13010:13010 - networks: - - front - - back - - - - - osscapi: - container_name: openslice-scapi - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.tmf.api/ - dockerfile: Dockerfile.tmfapi - image: org.etsi.osl.tmf.api:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.datasource.url": "jdbc:mysql://amysql/ostmfdb?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC", - "spring.datasource.username":"root", - "spring.datasource.password":"letmein", - "spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice", - "spring-addons.issuers[0].username-json-path":"$.preferred_username", - "spring-addons.issuers[0].claims[0].jsonPath":"$.realm_access.roles", - "spring-addons.issuers[0].claims[1].jsonPath":"$.resource_access.*.roles", - "spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice", - "springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth", - "springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token", - "springdoc.oauth.client-id" : "osapiWebClientId", - "springdoc.oauth.clientsecret" : "secret", - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "logging.level.org.springframework" : "INFO", - "kroki.serverurl" : "http://localhost/kroki" - }' - volumes: - - ./repo:/root - ports: - - 13082:13082 - networks: - - front - - back - depends_on: - - mysql-portal - - - osom: - container_name: openslice-osom - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.osom/ - dockerfile: Dockerfile.osom - image: org.etsi.osl.osom:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "logging.level.org.springframework" : "INFO" - }' - volumes: - - ./repo:/root - ports: - - 13100:13100 - networks: - - front - - back - depends_on: - - mysql-portal - - - oasapi: - container_name: openslice-oasapi - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.oas/ - dockerfile: Dockerfile.oasapi - image: org.etsi.osl.oas:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.datasource.url": "jdbc:mysql://amysql/ostmfdb?createDatabaseIfNotExist=true&useUnicode=true&nullCatalogMeansCurrent=true&characterEncoding=utf8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC", - "spring.datasource.username":"root", - "spring.datasource.password":"letmein", - "keycloak-internal-auth-server-url": "http://keycloak:8080/auth", - "keycloak-admin-password": "Pa55w0rd", - "keycloak.auth-server-url": "http://keycloak:8080/auth", - "keycloak-issuer": "http://keycloak:8080/auth/realms/openslice", - "springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth", - "springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token", - "springdoc.oauth.client-id" : "osapiWebClientId", - "springdoc.oauth.clientsecret" : "secret", - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "logging.level.org.springframework" : "INFO" - }' - volumes: - - ./repo:/root - ports: - - 13101:13101 - networks: - - front - - back - - - - portainer: - container_name: portainer - image: portainer/portainer-ce:2.18.4 - restart: always - profiles: ["dev", "prod"] - networks: - - front - ports: - - 9000:9000 - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - portainer_data:/data - - centrallog: - container_name: centrallog - restart: always - profiles: ["prod"] - build: - context: ../../org.etsi.osl.centrallog.service/ - dockerfile: Dockerfile.centrallog - image: org.etsi.osl.centrallog.service:latest - environment: - SPRING_APPLICATION_JSON: '{ - "spring.activemq.brokerUrl": "tcp://anartemis:61616?jms.watchTopicAdvisories=false", - "spring.activemq.user": "artemis", - "spring.activemq.password": "artemis", - "centrallogurl":"http://elk_ip:elk_port/index_name/_doc" - }' - ports: - - 13013:13013 - networks: - - back - - kroki: - container_name: kroki - restart: always - image: yuzutech/kroki - profiles: ["dev", "prod"] - depends_on: - - blockdiag - environment: - - KROKI_BLOCKDIAG_HOST=blockdiag - ports: - - "8000:8000" - networks: - - front - - back - - - blockdiag: - image: yuzutech/kroki-blockdiag - restart: always - profiles: ["dev", "prod"] - expose: - - "8001" - networks: - - front - - back - - -networks: - front: - driver: bridge - driver_opts: - com.docker.network.driver.mtu: 1450 - back: - driver: bridge - driver_opts: - com.docker.network.driver.mtu: 1450 - - -volumes: - portainer_data: - \ No newline at end of file -- GitLab