-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathdocker-compose.traefik.yml
59 lines (53 loc) · 1.83 KB
/
docker-compose.traefik.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: "3"
services:
cronicle:
image: soulteary/cronicle:0.9.63
restart: always
expose:
- 3012
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
# - "traefik.http.routers.cronicle-web.middlewares=redir-https@file"
- "traefik.http.routers.cronicle-web.entrypoints=http"
- "traefik.http.routers.cronicle-web.rule=Host(`cronicle.lab.io`)"
- "traefik.http.routers.cronicle-ssl.tls=true"
# - "traefik.http.routers.cronicle-ssl.middlewares=gzip@file"
- "traefik.http.routers.cronicle-ssl.entrypoints=https"
- "traefik.http.routers.cronicle-ssl.rule=Host(`cronicle.lab.io`)"
- "traefik.http.services.cronicle-backend.loadbalancer.server.scheme=http"
- "traefik.http.services.cronicle-backend.loadbalancer.server.port=3012"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./data/data:/opt/cronicle/data
- ./data/logs:/opt/cronicle/logs
- ./data/plugins:/opt/cronicle/plugins
extra_hosts:
- "cronicle.lab.io:0.0.0.0"
environment:
- TZ=Asia/Shanghai
- HOSTNAME=cronicle.lab.io
- CRONICLE_foreground=1
- CRONICLE_echo=1
- CRONICLE_base_app_url=http://cronicle.lab.io:3012
- CRONICLE_web_socket_use_hostnames=1
- CRONICLE_server_comm_use_hostnames=1
- CRONICLE_WebServer__http_port=3012
- CRONICLE_WebServer__http_bind_address=0.0.0.0
- CRONICLE_WebServer__https=0
- CRONICLE_web_direct_connect=0
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider localhost:3012/api/app/ping || exit 1"]
interval: 5s
timeout: 1s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
networks:
- traefik
networks:
traefik:
external: true