From 5149761f877c66fa4318ba0c4129508bd85feec5 Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Sat, 23 Sep 2023 23:38:24 +0200 Subject: [PATCH] chore: add draft of docker-compose.yml --- .mvn/wrapper/maven-wrapper.properties | 2 +- docker-compose.yml | 32 +++++++++++++++++++ .../src/main/resources/application.properties | 1 + 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 6d3a5665..ac184013 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -14,5 +14,5 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.3/apache-maven-3.9.3-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.4/apache-maven-3.9.4-bin.zip wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..8bc699c8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +services: + apiserver: + build: . + image: ghcr.io/l3s-learnweb/interweb:latest + restart: always + ports: + - "8080:8080" + env_file: +# - .env + - interweb-server/.env +# depends_on: +# - mariadb + environment: + TZ: "Europe/Berlin" + QUARKUS_HTTP_PORT: 8080 + +# mariadb: +# image: mariadb:10.11 +# restart: always +# ports: +# - "9306:3306" +# volumes: +# # On WSL docker machine, it may crash during migration when mounting NTFS file-system, just restart it multiple times :/ +# # https://jira.mariadb.org/browse/MDEV-29260 +# - "./data/mysql:/var/lib/mysql" +# environment: +# TZ: "Europe/Berlin" +# MARIADB_AUTO_UPGRADE: "yes" +# MARIADB_RANDOM_ROOT_PASSWORD: "yes" +# MARIADB_DATABASE: +# MARIADB_USER: +# MARIADB_PASSWORD: diff --git a/interweb-core/src/main/resources/application.properties b/interweb-core/src/main/resources/application.properties index ee94f2ed..e0aa3ce1 100644 --- a/interweb-core/src/main/resources/application.properties +++ b/interweb-core/src/main/resources/application.properties @@ -1,4 +1,5 @@ quarkus.rest-client.http2=true + %test.quarkus.log.console.level=DEBUG %test.quarkus.log.console.format=%d{HH:mm:ss} %-5p [%c{2.}] (%t) %s%e%n %test.quarkus.log.category."org.jboss.resteasy.reactive.client.logging".level=DEBUG