-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathservices.yaml
More file actions
48 lines (44 loc) · 1.98 KB
/
services.yaml
File metadata and controls
48 lines (44 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Example services manifest for j26-cli.
#
# Each entry describes a microservice available in the J26 platform.
# Developers use `j26 config` to choose how each service should run:
# - cloud → traffic is proxied to the live cloud URL
# - docker → the Docker image is pulled and run locally
# - local → traffic is forwarded to a server running on your machine (e.g. `npm run dev`)
# - skip → service is excluded entirely (no route generated)
#
# Fields:
# name (required) — identifier used as the Docker Compose service name
# path (required) — URL path prefix on https://local.j26.se, must start with /
# cloudUrl (required) — full HTTPS URL of the cloud-hosted service
# dockerImage (required) — Docker image to run when mode = "docker"
# port (required) — port the service listens on inside its container
# rewritePath (optional, default: true)
# true → strip the path prefix before forwarding (e.g. /auth/login → /login)
# false → forward the full path unchanged (e.g. /api/v1/users → /api/v1/users)
# env (optional) — base environment variables passed to the container (mode = "docker")
services:
- name: auth
path: /auth
cloudUrl: https://app.dev.j26.se/auth
dockerImage: ghcr.io/scouterna/j26-auth:latest
port: 80
# rewritePath defaults to true — /auth/login reaches the container as /login
- name: signupinfo
path: /_services/signupinfo
cloudUrl: https://app.dev.j26.se/_services/signupinfo
dockerImage: ghcr.io/scouterna/j26-signupinfo:latest
port: 8000
rewritePath: false
- name: map
path: /_services/map
cloudUrl: https://app.dev.j26.se/_services/map
dockerImage: ghcr.io/scouterna/j26-map:latest
port: 80
rewritePath: false
- name: app
path: /
cloudUrl: https://app.dev.j26.se/
dockerImage: ghcr.io/scouterna/j26-app:latest
port: 80
rewritePath: false