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:
- mongo
dashboard:
# uncomment "build" and comment out "image" to build from sources
build:
context: https://github.com/SkynetLabs/skynet-webportal.git#master
dockerfile: ./packages/dashboard/Dockerfile
# image: skynetlabs/dashboard
container_name: dashboard
restart: unless-stopped
logging: *default-logging
env_file:
- .env
environment:
- NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN}
- NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
volumes:
- ./docker/data/dashboard/.next:/usr/app/.next
networks:
shared:
ipv4_address: 10.10.10.85
expose:
- 3000
depends_on:
- mongo
# dashboard:
# # uncomment "build" and comment out "image" to build from sources
# build:
# context: https://github.com/SkynetLabs/skynet-webportal.git#master
# dockerfile: ./packages/dashboard/Dockerfile
# # image: skynetlabs/dashboard
# container_name: dashboard
# restart: unless-stopped
# logging: *default-logging
# env_file:
# - .env
# environment:
# - NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN}
# - NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
# volumes:
# - ./docker/data/dashboard/.next:/usr/app/.next
# networks:
# shared:
# ipv4_address: 10.10.10.85
# expose:
# - 3000
# depends_on:
# - mongo
# 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;
# Uncomment to launch new Dashboard under /v2 path
location /v2 {
location / {
proxy_pass http://dashboard-v2:9000;
}
location / {
proxy_pass http://dashboard:3000;
}
#location / {
# proxy_pass http://dashboard:3000;
#}
location /health {
proxy_pass http://accounts:3000;