-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: nginx templates and http2. (#133)
* chore: merge compose files, dev overrides.
- Loading branch information
Showing
18 changed files
with
168 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '20.8.1' | ||
node-version: '20.10.0' | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Save error log | ||
|
@@ -29,6 +29,8 @@ jobs: | |
path: npm-debug.log | ||
- name: Circular Dependencies | ||
run: npm run cycles | ||
- name: Lint | ||
run: npm run lint | ||
- name: Build Docker | ||
env: | ||
BM_COOKIE_SECRET: ${{ secrets.BM_COOKIE_SECRET }} | ||
|
@@ -44,5 +46,3 @@ jobs: | |
run: npm run build -w @busmap/common | ||
- name: Build UI | ||
run: npm run build -w ui | ||
- name: Lint | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM adminer:4.8.1 as adminer | ||
EXPOSE 8080 | ||
|
||
FROM nginx:1.25.3 AS dev | ||
COPY packages/web/nginx.local.conf /etc/nginx/nginx.conf | ||
COPY packages/web/certs/ /etc/nginx/certs/ | ||
COPY packages/web/conf.d/core/ /etc/nginx/conf.d/core/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
services: | ||
adminer: | ||
depends_on: | ||
- db | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.override | ||
target: adminer | ||
container_name: adminer | ||
ports: | ||
- "8080:8080" | ||
api: | ||
ports: | ||
- "3000:3000" | ||
command: | ||
- npm | ||
- run | ||
- dev | ||
- -w | ||
- api | ||
ui: | ||
depends_on: | ||
- api | ||
build: | ||
context: . | ||
target: busmap | ||
container_name: ui | ||
volumes: | ||
- .:/app | ||
- hoisted_node_modules:/app/node_modules | ||
- common_node_modules:/app/packages/common/node_modules | ||
- ui_node_modules:/app/packages/ui/node_modules | ||
- components_node_modules:/app/packages/components/node_modules | ||
ports: | ||
- "5173:5173" | ||
environment: | ||
API_HOST: ${API_HOST} | ||
command: | ||
- npm | ||
- run | ||
- dev | ||
- -w | ||
- ui | ||
storybook: | ||
build: | ||
context: . | ||
target: busmap | ||
container_name: storybook | ||
volumes: | ||
- .:/app | ||
- hoisted_node_modules:/app/node_modules | ||
- components_node_modules:/app/packages/components/node_modules | ||
ports: | ||
- "9000:9000" | ||
command: | ||
- npm | ||
- run | ||
- storybook | ||
- -w | ||
- "@busmap/components" | ||
dev: | ||
depends_on: | ||
- ui | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.override | ||
target: dev | ||
container_name: dev | ||
ports: | ||
- "80:80" | ||
- "443:443" | ||
stage: | ||
volumes: | ||
- ./packages/ui/dist:/var/www/${HOST_NAME} | ||
|
||
volumes: | ||
ui_node_modules: | ||
components_node_modules: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# DNS resolution works at startup via `depends_on` for `web` service in docker-compose.yml. | ||
# DNS resolution works at startup via `depends_on` for `web` service in compose.yaml. | ||
upstream api_server { | ||
server api:3000; | ||
} |
Oops, something went wrong.