Debug docker
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
docker-compose rm -fsv
|
|
@@ -2,30 +2,21 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
pairgoth:
|
pairgoth:
|
||||||
container_name: pairgoth-engine
|
container_name: pairgoth-engine
|
||||||
image: maven:3.6.3-openjdk-11-slim
|
image: eclipse-temurin:18-jdk
|
||||||
working_dir: /home/app/pairgoth
|
working_dir: /home/app/pairgoth
|
||||||
user: "${APP_UID}:${APP_GID}"
|
user: "${APP_UID}:${APP_GID}"
|
||||||
entrypoint: bash -c
|
entrypoint: bash -c
|
||||||
command: '"mvn -e -Duser.home=/home/app clean package && java -jar application/target/pairgoth-engine.war"'
|
command: '"java -jar pairgoth-engine.jar"'
|
||||||
volumes:
|
volumes:
|
||||||
- ..:/home/app/pairgoth
|
- ./data/app:/home/app/pairgoth
|
||||||
- ./data/jetty:/var/lib/pairgoth/jetty
|
- ./data/jetty:/var/lib/pairgoth/jetty
|
||||||
- ./data/maven:/home/app/.m2
|
|
||||||
networks:
|
networks:
|
||||||
- pairgoth-network
|
- pairgoth-network
|
||||||
ports:
|
ports:
|
||||||
- '5006:5006'
|
|
||||||
- '8080:8080'
|
- '8080:8080'
|
||||||
environment:
|
environment:
|
||||||
HOME: "/home/app"
|
HOME: "/home/app"
|
||||||
USER: "app"
|
USER: "app"
|
||||||
MAVEN_CONFIG: "/home/app/.m2"
|
|
||||||
MAVEN_OPTS: "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5006"
|
|
||||||
SMTP_HOST: ${SMTP_HOST}
|
|
||||||
SMTP_PORT: ${SMTP_PORT}
|
|
||||||
SMTP_USER: ${SMTP_USER}
|
|
||||||
SMTP_PASSWORD: ${SMTP_PASSWORD}
|
|
||||||
# restart: unless-stopped
|
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
networks:
|
networks:
|
||||||
|
@@ -1,16 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if ! test -f ../pairgoth.properties
|
mkdir -p data/jetty
|
||||||
then
|
|
||||||
echo "Missing pairgoth.properties file" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
grep -r '^smtp\.host' ../pairgoth.properties | sed -r -e 's/smtp\.host/SMTP_HOST/' -e 's/ //g' > .env
|
|
||||||
grep -r '^smtp\.port' ../pairgoth.properties | sed -r -e 's/smtp\.port/SMTP_PORT/' -e 's/ //g' >> .env
|
|
||||||
grep -r '^smtp\.user' ../pairgoth.properties | sed -r -e 's/smtp\.user/SMTP_USER/' -e 's/ //g' >> .env
|
|
||||||
grep -r '^smtp\.password' ../pairgoth.properties | sed -r -e 's/smtp\.password/SMTP_PASSWORD/' -e 's/ //g' >> .env
|
|
||||||
|
|
||||||
mkdir -p data/jetty data/maven
|
|
||||||
|
|
||||||
APP_UID=$(id -u) APP_GID=$(id -g) docker compose up
|
APP_UID=$(id -u) APP_GID=$(id -g) docker compose up
|
||||||
|
Reference in New Issue
Block a user