Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ EMAIL_PASSWORD=""

### Docker Driver options
DOCKER_DRIVER_PRIVATE_CA_PATH=""

### NPM Registry options
NPM_PASSWORD=""
49 changes: 36 additions & 13 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ configs:
fileStore:
enable: true
url: http://file-server:3001
npmRegistry:
enabled: true
url: http://npm:4873
admin:
username: admin
password: ${NPM_PASSWORD:-secret}
flowfuse_storage:
content: |
port: 3001
Expand Down Expand Up @@ -404,6 +410,20 @@ configs:
emqx-api:
content: |
flowfuse:verySecret:administrator
npm-registry-config:
content: |
storage: /verdaccio/storage
web:
enable: false
auth:
ff-auth:
baseURL: http://forge:3000
adminUser: admin
adminSecret: ${NPM_PASSWORD:-secret}
packages:
'@*/*':
access: $authenticated
log: { type: stdout, format: pretty, level: http }

services:
nginx:
Expand Down Expand Up @@ -553,19 +573,21 @@ services:
profiles:
- autotls

# npm:
# image: "verdaccio/verdaccio:5"
# networks:
# - flowforge
# restart: always
# environment:
# - "VIRTUAL_HOST=npm.${DOMAIN:?error}"
# - "VIRTUAL_PORT=4873"
# volumes:
# - "./npm/conf:/verdaccio/conf"
# - "./npm/storage:/verdaccio/storage"
# depends_on:
# - nginx
npm-registry:
image: "flowfuse/npm-registry:0.0.1"
networks:
- flowforge
restart: always
environment:
- "VIRTUAL_HOST=npm.${DOMAIN:?error}"
- "VIRTUAL_PORT=4873"
configs:
- source: npm-registry-config
target: /verdaccio/conf/config.yaml
volumes:
- "npm-registry:/verdaccio/storage"
depends_on:
- nginx

networks:
flowforge:
Expand All @@ -578,3 +600,4 @@ volumes:
fileStorage:
acme:
emqx:
npm-registry: