Merge pull request #138 from gradido/fix_compose_bug

Fix compose bug
This commit is contained in:
Ulf Gebhardt 2021-04-07 09:11:27 +02:00 committed by GitHub
commit b5fffc392d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 32 additions and 16 deletions

View File

@ -43,7 +43,7 @@ services:
- community-server - community-server
- login-server - login-server
volumes: volumes:
- ./logs:/var/log/nginx - ./logs/nginx:/var/log/nginx
######################################################### #########################################################
## PHPMYADMIN ########################################### ## PHPMYADMIN ###########################################

View File

@ -16,8 +16,6 @@ services:
target: production target: production
networks: networks:
- external-net - external-net
depends_on:
- nginx
ports: ports:
- 8080:8080 - 8080:8080
environment: environment:
@ -69,6 +67,7 @@ services:
- 1201:1201 - 1201:1201
volumes: volumes:
- ./configs/login_server:/etc/grd_login - ./configs/login_server:/etc/grd_login
- login_build:/code/build_vol
######################################################### #########################################################
## NGINX ################################################ ## NGINX ################################################
@ -135,4 +134,5 @@ networks:
internal: true internal: true
volumes: volumes:
db_vol: db_vol:
login_build:

View File

@ -7,7 +7,7 @@ function resolveSrc(_path) {
let vue_path = process.env.VUE_PATH let vue_path = process.env.VUE_PATH
if (vue_path == undefined) { if (vue_path == undefined) {
vue_path = '' vue_path = '/vue'
} }
// vue.config.js // vue.config.js

View File

@ -64,4 +64,4 @@ RUN chmod +x ./Dockerfiles/build_and_run.sh
#RUN chmod +x ./start_after_mysql.sh #RUN chmod +x ./start_after_mysql.sh
#ENTRYPOINT ["/usr/bin/Gradido_LoginServer"] #ENTRYPOINT ["/usr/bin/Gradido_LoginServer"]
#CMD gdb -ex=r Gradido_LoginServer #CMD gdb -ex=r Gradido_LoginServer
CMD ./Dockerfiles/build_and_run.sh CMD ./Dockerfiles/build_and_run.sh; ./build_vol/bin/Gradido_LoginServer

View File

@ -4,6 +4,6 @@ cd build_vol
cmake -DCMAKE_BUILD_TYPE=Debug .. cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j$(nproc) Gradido_LoginServer make -j$(nproc) Gradido_LoginServer
echo "building done" #echo "building done"
chmod +x ./bin/Gradido_LoginServer chmod +x ./bin/Gradido_LoginServer
./bin/Gradido_LoginServer #./bin/Gradido_LoginServer

View File

@ -248,6 +248,7 @@ int Gradido_LoginServer::main(const std::vector<std::string>& args)
json_srv.start(); json_srv.start();
printf("[Gradido_LoginServer::main] started in %s\n", usedTime.string().data()); printf("[Gradido_LoginServer::main] started in %s\n", usedTime.string().data());
std::clog << "[Gradido_LoginServer::main] started in " << usedTime.string().data() << std::endl;
// wait for CTRL-C or kill // wait for CTRL-C or kill
waitForTerminationRequest(); waitForTerminationRequest();

View File

@ -14,14 +14,6 @@ server {
root /var/www/cakephp/webroot; root /var/www/cakephp/webroot;
index index.php; index index.php;
location ~* \.(png|jpg|ico|webp)$ {
expires 30d;
}
location ~* \.(js|css) {
# expires 1d;
expires 1d;
}
location ~ \.php$ { location ~ \.php$ {
fastcgi_pass community-server:9000; fastcgi_pass community-server:9000;
@ -72,6 +64,29 @@ server {
location / { location / {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
} }
location /vue {
location /vue/sockjs-node {
rewrite /vue/(.*) /$1;
}
location ~* \.(png) {
expires 1d;
rewrite /vue/(.*) /$1;
}
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
#rewrite /vue/(.*) /$1 break;
proxy_pass http://frontend:8080;
proxy_redirect off;
}
# access_log /var/log/nginx/access.log main; # access_log /var/log/nginx/access.log main;