forked from ethibox/awesome-stacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirefly.yml
54 lines (50 loc) · 1.53 KB
/
firefly.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
# DOMAIN=example.com docker stack deploy -c firefly.yml firefly
services:
app:
image: fireflyiii/core:${VERSION:-version-5.5.13}
environment:
- DB_HOST=postgres
- DB_DATABASE=firefly
- DB_USERNAME=firefly
- DB_PASSWORD=myp@ssw0rd
- DB_CONNECTION=pgsql
- DB_PORT=5432
- APP_KEY=${APP_KEY:-S0m3R@nd0mStr1ngOf32Ch@rsEx@ctly}
- APP_ENV=${APP_ENV:-local}
- TZ=Europe/Paris
- APP_LOG_LEVEL=${APP_LOG_LEVEL:-notice}
- APP_URL=${SCHEME:-https}://${DOMAIN:-firefly.localhost}
- TRUSTED_PROXIES=**
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.firefly-${NUMBER:-1}.rule=Host(`${DOMAIN:-firefly.localhost}`)
- traefik.http.routers.firefly-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.firefly-${NUMBER:-1}.service=firefly-${NUMBER:-1}
- traefik.http.routers.firefly-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.firefly-${NUMBER:-1}.loadbalancer.server.port=8080
volumes:
- ${VOLUME_PATH}storage:/var/www/firefly-iii/storage/
networks:
- internal
- traefik
postgres:
image: postgres:12-alpine
environment:
- POSTGRES_DB=firefly
- POSTGRES_USER=firefly
- POSTGRES_PASSWORD=myp@ssw0rd
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
storage:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net