forked from wessberg/Polyfiller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.59 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
networks:
polyfiller:
services:
autoheal:
image: willfarrell/autoheal:1.2.0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
polyfill-cache:
image: rclone/rclone:latest
environment:
- RCLONE_CONFIG=/config/rclone/rclone.conf # Path to the rclone config file inside the container
cap_add:
- SYS_ADMIN # Necessary for FUSE
- MKNOD # Necessary for FUSE
devices:
- "/dev/fuse" # Necessary for FUSE
security_opt:
- "apparmor:unconfined"
volumes:
- ./config/rclone:/config/rclone # Mount the local rclone config directory to the container
- ./polyfill-cache:/polyfill-cache:shared # Mount the local directory for the rclone mount
command: "mount azure:/ /polyfill-cache --allow-other --allow-non-empty --vfs-cache-mode writes"
restart: always
api-service:
depends_on:
- autoheal
- polyfill-cache
image: polyfiller/api-service
environment:
- NODE_ENV=production
volumes:
- ./polyfill-cache:/tmp/@wessberg/polyfiller
networks:
- polyfiller
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 3s
retries: 5
start_period: 30s
labels:
- autoheal=true
restart: always
logging:
driver: json-file
options:
max-size: 10m
caddy:
depends_on:
- api-service
image: caddy
ports:
- 80:80
- 443:443
networks:
- polyfiller
restart: always
command: caddy reverse-proxy --from polyfiller.app --to api-service:3000