mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
a9e29279ea
Squash commit of storybook addition to aid design system documentation efforts. The older commit titles were: * Initial storybook commit * Fix documentation.json links * Don't track documentation.json in git * Enable sass in storybook * Initial version of a story that uses angular components * Remove example stories, clean up button story * More example stories * Fix sb build * Always use dev * Try without auth header * Update workflow name * More logs * Check if token set * Use release/storybook branch for testing * Send ref input to workflow * Escape input to curl call * Adding logging * Different type of escaping * Fix JOSN * Use dev branch for opf/design-system storybook publishing * Add plugin to message path to parent window * Remove extraneous story * Add a ton of docs * Update stories * Fix syntax error caused by multiple newlines inside of a JSX component * Add text-field story * Add basic html stories that don't work yet * Try to get plain HTML examples working * HTML Examples work, but slowly revert to components anyway * Fix HTML examples * Remove extraneous files * Put storybook eslint rules back in * Improve docs * Show docs tab by default * Add pullpreview for storybook * Use the same pullpreview tag for both storybook and normal deployments * Change name of second pullpreview workflow * Pin node version to 16.17.0 * Initial update to docs Added/updated: Foundation pages: - Colours (major update) - Shadows (minor) - Typography (new) Blocks - Checkbox (minor) - Action bar (major) - Buttons (new) - Link (major) - Modal Dialogue (new) - Selector Field (new) * Make sure all code is available during storybook pp build * Change storybook pullpreview file name * Add production target to docker-compose sb pp * Fix acme check for sb pp * Only run cd-storybook on dev branch * Run without https on 8080 * Added intro and new page - Introduction renamed to "Design System", page rewritten completely - Added page "Devices and Accessibility" * Remove domain from caddy * Add port to listen command * Remove double pullpreview workflows * Added Divider component * Change sorting of stories * Update section titles and order for styles and blocks * add extra action bar story * Updated organising + new page - Updated organisation into Styles, Components and Patterns. - Added page "Using Storybook" (mostly a skeleton for now) * Added note about colours not being implemented yet * Minor Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
83 lines
1.6 KiB
YAML
83 lines
1.6 KiB
YAML
version: '3.7'
|
|
networks:
|
|
frontend:
|
|
attachable: true
|
|
backend:
|
|
attachable: true
|
|
|
|
volumes:
|
|
caddy_data:
|
|
postgres_data:
|
|
openproject_data:
|
|
|
|
x-defaults: &defaults
|
|
build:
|
|
context: .
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.pullpreview
|
|
volumes:
|
|
- "openproject_data:/var/openproject/assets"
|
|
environment:
|
|
- "RAILS_CACHE_STORE=file_store"
|
|
- "DATABASE_URL=postgresql://app:p4ssw0rd@db:5432/app?encoding=utf8&pool=5&timeout=5000&reconnect=true"
|
|
- "SECRET_KEY_BASE=d4e74f017910ac56c6ebad01165b7e1b37f4c9c02e9716836f8670cdc8d65a231e64e4f6416b19c8"
|
|
- "RAILS_ENV=production"
|
|
networks:
|
|
- backend
|
|
|
|
services:
|
|
proxy:
|
|
image: caddy:2
|
|
restart: unless-stopped
|
|
command: "caddy reverse-proxy --from '${PULLPREVIEW_URL}' --to web:8080"
|
|
networks:
|
|
- frontend
|
|
- backend
|
|
depends_on:
|
|
- web
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- "caddy_data:/data"
|
|
|
|
db:
|
|
image: postgres:10
|
|
environment:
|
|
POSTGRES_USER: app
|
|
POSTGRES_PASSWORD: p4ssw0rd
|
|
POSTGRES_DB: app
|
|
networks:
|
|
- backend
|
|
volumes:
|
|
- "postgres_data:/var/lib/postgresql/data"
|
|
expose:
|
|
- "5432"
|
|
|
|
web:
|
|
<<: *defaults
|
|
expose:
|
|
- "8080"
|
|
command: "./docker/prod/web"
|
|
depends_on:
|
|
- db
|
|
- worker
|
|
|
|
worker:
|
|
<<: *defaults
|
|
command: "./docker/prod/worker --seed --set attachment_max_size=262144,host_name=${PULLPREVIEW_PUBLIC_DNS}"
|
|
depends_on:
|
|
- db
|
|
|
|
storybook:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile-storybook
|
|
target: prod
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- "caddy_data:/data"
|