yaxc/docker-compose.yml
2021-05-15 12:37:53 +02:00

35 lines
No EOL
938 B
YAML

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
ports:
- 127.0.0.1:10001:1332
depends_on:
- redis
restart: on-failure
tty: true
labels:
- "com.centurylinklabs.watchtower.scope=yaxcscope"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 30 --scope yaxcscope
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