Skip to content

Commit

Permalink
Minor changes to docker-compose.yml and nginx.conf
Browse files Browse the repository at this point in the history
* Added STRIPE_PK: " " to docker-compose.yml
* Added the infoscreen app as a server in nginx.conf
  • Loading branch information
HenrikEngen committed Sep 8, 2023
1 parent 90440fc commit ea51945
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 17 deletions.
34 changes: 18 additions & 16 deletions phoenix-development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
HOST: "http://delta.dev.phoenixlan.no:3000"
REACT_APP_OAUTH_CLIENT_ID: "phoenix-delta-dev"
REACT_APP_MAIN_SITE: "http://dev.phoenixlan.no:3000"
STRIPE_PK: " "
env_file: .participate_env
entrypoint:
- bash
Expand Down Expand Up @@ -113,25 +114,26 @@ services:
logging:
options:
max-size: "1g"
info_page:
build:
context: ../../
dockerfile: fullstack/phoenix-development/nodejs.Dockerfile
environment:
BASE_URL: "http://api.dev.phoenixlan.no:3000"
REACT_APP_API_URL: "http://api.dev.phoenixlan.no:3000"
entrypoint:
- bash
- "-c"
- "cd ../phoenixjs && yarn link && cd ../phoenix && yarn link @phoenixlan/phoenix.js && yarn && yarn start"
volumes:
- ../../phoenixinfo-v1:/srv/phoenix
- ../../phoenixjs:/srv/phoenixjs
logging:
options:
max-size: "1g"
db:
image: postgres:alpine
env_file: .db_env
healthcheck:
test: ["CMD-SHELL", "pg_isready --username=phoenix"]
interval: 10s
timeout: 5s
retries: 5
logging:
options:
max-size: "1g"
rabbitmq:
image: rabbitmq:alpine
env_file: .rabbitmq_env
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 5s
timeout: 30s
retries: 3
logging:
options:
max-size: "1g"
Expand Down
27 changes: 26 additions & 1 deletion phoenix-development/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,31 @@ http {



server {
listen 3000;
root /var/www;
server_name info.dev.phoenixlan.no;
index index.html index.htm;

# Fuck Google
add_header Permissions-Policy interest-cohort=();

location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://info_page:3000;
}

location /ws {
proxy_pass http://info_page:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}

server {
listen 3000;
root /var/www;
Expand Down Expand Up @@ -105,4 +130,4 @@ http {
}


}
}

0 comments on commit ea51945

Please sign in to comment.