diff --git a/API/package.json b/API/package.json index b2fc543..3e59968 100644 --- a/API/package.json +++ b/API/package.json @@ -5,7 +5,6 @@ "main": "index.js", "scripts": { "start": "nodemon index.js -e js", - "prod": "node index.js", "test": "jest" }, "keywords": [], @@ -22,7 +21,8 @@ "pdf-lib": "^1.17.1", "pdfkit": "^0.14.0", "sharp": "^0.33.2", - "text-to-image": "^5.2.0" + "text-to-image": "^5.2.0", + "forever": "^4.0.3" }, "devDependencies": { "jest": "^29.7.0", diff --git a/API/prod-entrypoint.sh b/API/prod-entrypoint.sh index 16de5d9..f2012d9 100755 --- a/API/prod-entrypoint.sh +++ b/API/prod-entrypoint.sh @@ -4,4 +4,4 @@ export NODE_ENV=production; npm install --only=production; -npm prod; \ No newline at end of file +forever start index.js; \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 2b97606..1916cb2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -14,7 +14,7 @@ services: - "3306" networks: vpcbr: - ipv4_address: 172.23.0.2 + ipv4_address: 172.25.0.2 phpmyadmin: image: phpmyadmin/phpmyadmin restart: unless-stopped @@ -31,7 +31,7 @@ services: - traefik.http.routers.phpmyadminposign.entrypoints=web networks: vpcbr: - ipv4_address: 172.23.0.3 + ipv4_address: 172.25.0.3 depends_on: - database @@ -40,8 +40,8 @@ networks: driver: bridge ipam: config: - - subnet: 172.23.0.0/16 - - gateway: 172.23.0.1 + - subnet: 172.25.0.0/16 + - gateway: 172.25.0.1 diff --git a/env-create.sh b/env-create.sh index d3f546e..b768217 100755 --- a/env-create.sh +++ b/env-create.sh @@ -94,8 +94,6 @@ ${PROXY_ENV} PORT: 80 ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} - volumes: - - ./FRONT:/usr/local/apache2/htdocs/ labels: - traefik.enable=true - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`) @@ -181,8 +179,6 @@ ${PROXY_ENV} PORT: 80 ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} - volumes: - - ./FRONT:/usr/local/apache2/htdocs/ labels: - traefik.enable=true - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`) @@ -258,8 +254,6 @@ ${PROXY_ENV} PORT: 80 ${PROXY_ENV} APP_TIMEZONE: ${TIMEZONE} - volumes: - - ./FRONT:/usr/local/apache2/htdocs/ labels: - traefik.enable=true - traefik.http.routers.webchart.rule=PathPrefix(\`/posign\`)