Added swagger-ui service to docker-compose.yml

This commit is contained in:
darmiel 2021-05-15 12:34:18 +02:00
parent fcf76e5bf8
commit a215f0a479

View file

@ -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