This commit is contained in:
Michał Leszczyk 2022-05-25 15:01:35 +02:00
parent bbc598ddf7
commit a4709cd6af
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
2 changed files with 27 additions and 27 deletions

View File

@ -54,29 +54,29 @@ services:
depends_on: depends_on:
- mongo - mongo
dashboard: # dashboard:
# uncomment "build" and comment out "image" to build from sources # # uncomment "build" and comment out "image" to build from sources
build: # build:
context: https://github.com/SkynetLabs/skynet-webportal.git#master # context: https://github.com/SkynetLabs/skynet-webportal.git#master
dockerfile: ./packages/dashboard/Dockerfile # dockerfile: ./packages/dashboard/Dockerfile
# image: skynetlabs/dashboard # # image: skynetlabs/dashboard
container_name: dashboard # container_name: dashboard
restart: unless-stopped # restart: unless-stopped
logging: *default-logging # logging: *default-logging
env_file: # env_file:
- .env # - .env
environment: # environment:
- NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN} # - NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN}
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY} # - NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
volumes: # volumes:
- ./docker/data/dashboard/.next:/usr/app/.next # - ./docker/data/dashboard/.next:/usr/app/.next
networks: # networks:
shared: # shared:
ipv4_address: 10.10.10.85 # ipv4_address: 10.10.10.85
expose: # expose:
- 3000 # - 3000
depends_on: # depends_on:
- mongo # - mongo
# Do not build dashboard-v2 until we're ready to make a switch # Do not build dashboard-v2 until we're ready to make a switch
# ============================================================ # ============================================================

View File

@ -4,13 +4,13 @@ include /etc/nginx/conf.d/include/ssl-settings;
include /etc/nginx/conf.d/include/init-optional-variables; include /etc/nginx/conf.d/include/init-optional-variables;
# Uncomment to launch new Dashboard under /v2 path # Uncomment to launch new Dashboard under /v2 path
location /v2 { location / {
proxy_pass http://dashboard-v2:9000; proxy_pass http://dashboard-v2:9000;
} }
location / { #location / {
proxy_pass http://dashboard:3000; # proxy_pass http://dashboard:3000;
} #}
location /health { location /health {
proxy_pass http://accounts:3000; proxy_pass http://accounts:3000;