mirror of
https://github.com/darmiel/yaxc.git
synced 2024-12-28 10:52:07 +08:00
Added swagger-ui service to docker-compose.yml
This commit is contained in:
parent
fcf76e5bf8
commit
a215f0a479
1 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis:latest
|
image: redis:latest
|
||||||
|
|
||||||
yaxc:
|
yaxc:
|
||||||
image: darmiel/yaxc:latest
|
image: darmiel/yaxc:latest
|
||||||
command: serve --enable-encryption -x 86400 -l 5s -s 1h -r redis:6379 --proxy-header X-Forwarded-For
|
command: serve --enable-encryption -x 86400 -l 5s -s 1h -r redis:6379 --proxy-header X-Forwarded-For
|
||||||
|
@ -13,6 +14,7 @@ services:
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
||||||
|
|
||||||
watchtower:
|
watchtower:
|
||||||
image: containrrr/watchtower
|
image: containrrr/watchtower
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -21,3 +23,12 @@ services:
|
||||||
labels:
|
labels:
|
||||||
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
|
|
||||||
|
swagger:
|
||||||
|
image: swaggerapi/swagger-ui
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:10002:8080
|
||||||
|
environment:
|
||||||
|
SWAGGER_JSON: "/swagger.yml"
|
||||||
|
command: "sh -c 'curl https://raw.githubusercontent.com/darmiel/yaxc/main/swagger.yml -o /swagger.yml && ls -la / && sh /usr/share/nginx/run.sh'"
|
||||||
|
restart: on-failure
|
Loading…
Reference in a new issue