Compare commits

...
This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.

14 Commits

Author SHA1 Message Date
Michał Leszczyk 124bdcec5e
wip 2022-05-25 15:28:48 +02:00
Michał Leszczyk 7cb8f3c791
wip 2022-05-25 15:19:40 +02:00
Michał Leszczyk 9dacf07ef4
wip 2022-05-25 15:11:05 +02:00
Michał Leszczyk a4709cd6af
wip 2022-05-25 15:01:35 +02:00
Michał Leszczyk bbc598ddf7
wip 2022-05-25 14:27:26 +02:00
Michał Leszczyk 2a3a0c96f8
wip 2022-05-25 14:08:36 +02:00
Michał Leszczyk 41466a47da
wip 2022-05-25 14:05:34 +02:00
Michał Leszczyk ee0ebb265e
wip 2022-05-25 14:03:35 +02:00
Michał Leszczyk 3420155381
wip 2022-05-25 14:00:51 +02:00
Michał Leszczyk f798035a17
wip 2022-05-25 13:58:33 +02:00
Michał Leszczyk 583575f5ea
wip 2022-05-25 13:46:38 +02:00
Michał Leszczyk 52db6b96df
wip 2022-05-25 13:36:41 +02:00
Michał Leszczyk a0446a9860
wip 2022-05-25 10:10:39 +02:00
Michał Leszczyk ecadc58a44
Testing on dev3 2022-05-25 07:35:52 +02:00
3 changed files with 40 additions and 56 deletions

View File

@ -21,8 +21,8 @@ services:
accounts:
# uncomment "build" and comment out "image" to build from sources
# build: https://github.com/SkynetLabs/skynet-accounts.git#main
image: skynetlabs/skynet-accounts:1.1.0
build: https://github.com/SkynetLabs/skynet-accounts.git#dashboard-v2-tests
# image: skynetlabs/skynet-accounts:1.1.0
container_name: accounts
restart: unless-stopped
logging: *default-logging
@ -54,51 +54,51 @@ 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
# Do not build dashboard-v2 until we're ready to make a switch
# ============================================================
# dashboard-v2:
# dashboard:
# # uncomment "build" and comment out "image" to build from sources
# build:
# context: ./packages/dashboard-v2
# dockerfile: Dockerfile
# container_name: dashboard-v2
# 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:
# - GATSBY_PORTAL_DOMAIN=${PORTAL_DOMAIN}
# - GATSBY_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
# - NEXT_PUBLIC_PORTAL_DOMAIN=${PORTAL_DOMAIN}
# - NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
# volumes:
# - ./docker/data/dashboard-v2/.cache:/usr/app/.cache
# - ./docker/data/dashboard-v2/public:/usr/app/public
# - ./docker/data/dashboard/.next:/usr/app/.next
# networks:
# shared:
# ipv4_address: 10.10.10.86
# ipv4_address: 10.10.10.85
# expose:
# - 9000
# - 3000
# depends_on:
# - mongo
# Do not build dashboard-v2 until we're ready to make a switch
# ============================================================
dashboard-v2:
build:
context: ./packages/dashboard-v2
dockerfile: Dockerfile
container_name: dashboard-v2
restart: unless-stopped
logging: *default-logging
env_file:
- .env
environment:
- GATSBY_PORTAL_DOMAIN=${PORTAL_DOMAIN}
- GATSBY_STRIPE_PUBLISHABLE_KEY=${STRIPE_PUBLISHABLE_KEY}
volumes:
- ./docker/data/dashboard-v2/.cache:/usr/app/.cache
- ./docker/data/dashboard-v2/public:/usr/app/public
networks:
shared:
ipv4_address: 10.10.10.86
expose:
- 9000
depends_on:
- mongo

View File

@ -4,30 +4,14 @@ 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 {
# proxy_pass http://dashboard-v2:9000;
# }
location / {
proxy_pass http://dashboard:3000;
proxy_pass http://dashboard-v2:9000;
}
location /health {
proxy_pass http://accounts:3000;
}
location /stripe/webhook {
proxy_pass http://accounts:3000;
}
location /api/stripe/billing {
proxy_pass http://dashboard:3000;
}
location /api/stripe/checkout {
proxy_pass http://dashboard:3000;
}
location /api {
rewrite /api/(.*) /$1 break;
proxy_pass http://accounts:3000;

View File

@ -11,7 +11,7 @@ module.exports = {
title: `Account Dashboard`,
siteUrl: `https://account.${GATSBY_PORTAL_DOMAIN}`,
},
pathPrefix: "/v2",
// pathPrefix: "/v2",
trailingSlash: "never",
plugins: [
"gatsby-plugin-image",