-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
35 lines (31 loc) · 938 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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