-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
92 lines (85 loc) · 2.03 KB
/
docker-compose.yml
File metadata and controls
92 lines (85 loc) · 2.03 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
# Tailscale sidecar container
tailscale:
image: tailscale/tailscale:latest
hostname: firefly
container_name: ts-firefly
volumes:
- tailscale-state:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
env_file:
- tailscale.env
restart: unless-stopped
networks:
- firefly_iii
# Nginx reverse proxy
nginx:
image: nginx:alpine
container_name: firefly-proxy
network_mode: service:tailscale
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- tailscale
- app
- importer
restart: unless-stopped
app:
image: fireflyiii/core:latest
hostname: app
container_name: firefly_iii_core
restart: always
volumes:
- firefly_iii_upload:/var/www/html/storage/upload
env_file: .env
networks:
- firefly_iii
depends_on:
- db
db:
image: mariadb:lts
hostname: db
container_name: firefly_iii_db
restart: always
env_file: .db.env
networks:
- firefly_iii
volumes:
- firefly_iii_db:/var/lib/mysql
importer:
image: fireflyiii/data-importer:latest
hostname: importer
container_name: firefly_iii_importer
restart: always
env_file: .importer.env
networks:
- firefly_iii
depends_on:
- app
cron:
#
# To make this work, set STATIC_CRON_TOKEN in your .env file or as an environment variable and replace PLEASE_REPLACE_WITH_32_CHAR_CODE below
# The STATIC_CRON_TOKEN must be *exactly* 32 characters long
#
image: alpine
restart: always
container_name: firefly_iii_cron
env_file: .env
command: sh -c "
apk add tzdata
&& ln -s /usr/share/zoneinfo/${TZ} /etc/localtime
| echo \"0 3 * * * wget -qO- http://app:8080/api/v1/cron/${STATIC_CRON_TOKEN};echo\"
| crontab -
&& crond -f -L /dev/stdout"
networks:
- firefly_iii
volumes:
tailscale-state:
firefly_iii_upload:
firefly_iii_db:
networks:
firefly_iii:
driver: bridge