fix(compose): add openapi to docs
This commit is contained in:
parent
a9c05ac886
commit
11ce5302ba
|
@ -2,21 +2,6 @@ name: funkwhale-docs
|
||||||
networks:
|
networks:
|
||||||
web:
|
web:
|
||||||
external: true
|
external: true
|
||||||
services:
|
include:
|
||||||
sphinx:
|
- path: compose/docs.sphinx.yml
|
||||||
build:
|
- path: compose/docs.openapi.yml
|
||||||
context: "compose/context/docs"
|
|
||||||
init: true
|
|
||||||
ports: ["8001:8001"]
|
|
||||||
command: sh -c 'cd /src/docs && make install && make dev'
|
|
||||||
volumes:
|
|
||||||
- ${PWD}:/src
|
|
||||||
labels:
|
|
||||||
- "traefik.enable=true"
|
|
||||||
- "traefik.http.routers.whoami-web.rule=Host(`docs.funkwhale.test`)"
|
|
||||||
- "traefik.http.routers.whoami-web.entrypoints=web"
|
|
||||||
|
|
||||||
- "traefik.http.routers.whoami-webs.rule=Host(`docs.funkwhale.test`)"
|
|
||||||
- "traefik.http.routers.whoami-webs.entrypoints=webs"
|
|
||||||
- "traefik.http.routers.whoami-webs.tls=true"
|
|
||||||
networks: ["web"]
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
services:
|
|
||||||
api-docs:
|
|
||||||
image: swaggerapi/swagger-ui:v3.37.2
|
|
||||||
environment:
|
|
||||||
- "API_URL=/swagger.yml"
|
|
||||||
ports:
|
|
||||||
- "8002:8080"
|
|
||||||
volumes:
|
|
||||||
- "./docs/swagger.yml:/usr/share/nginx/html/swagger.yml"
|
|
||||||
- "./docs/api:/usr/share/nginx/html/api"
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
services:
|
||||||
|
openapi:
|
||||||
|
image: swaggerapi/swagger-ui
|
||||||
|
environment:
|
||||||
|
- "URL=/openapi.yml"
|
||||||
|
ports:
|
||||||
|
- "8002:8080"
|
||||||
|
volumes:
|
||||||
|
- "../docs/specs/nodeinfo21/schema.yml:/usr/share/nginx/html/openapi.yml"
|
||||||
|
# - "../docs/api:/usr/share/nginx/html/api"
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.test-funkwhale-openapi-web.rule=Host(`openapi.funkwhale.test`)"
|
||||||
|
- "traefik.http.routers.test-funkwhale-openapi-web.entrypoints=web"
|
||||||
|
- "traefik.http.services.test-funkwhale-openapi.loadbalancer.server.port=8080"
|
||||||
|
- "traefik.http.routers.test-funkwhale-openapi-webs.rule=Host(`openapi.funkwhale.test`)"
|
||||||
|
- "traefik.http.routers.test-funkwhale-openapi-webs.entrypoints=webs"
|
||||||
|
- "traefik.http.routers.test-funkwhale-openapi-webs.tls=true"
|
||||||
|
networks: ["web"]
|
Loading…
Reference in New Issue