mirror of
https://github.com/darmiel/yaxc.git
synced 2024-12-27 01:33:18 +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:
|
||||
redis:
|
||||
image: redis:latest
|
||||
|
||||
yaxc:
|
||||
image: darmiel/yaxc:latest
|
||||
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
|
||||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
||||
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
|
@ -21,3 +23,12 @@ services:
|
|||
labels:
|
||||
- "com.centurylinklabs.watchtower.scope=yaxcscope"
|
||||
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