-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
invoiceninja.yml
84 lines (79 loc) · 2.71 KB
/
invoiceninja.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# DOMAIN=example.com docker stack deploy -c invoiceninja.yml invoiceninja
# chown -R 1500:1500 data/ storage/
services:
nginx:
image: ethibox/nginx-proxy:latest
environment:
- HTTPS=${HTTPS:-1}
- NGINX_ROOT_PATH=/var/www/app/public
- SERVER_NAME={{ index .Service.Labels "com.docker.stack.namespace" }}_app
volumes:
- ${VOLUME_PATH}storage:/var/www/app/storage
- ${VOLUME_PATH}data:/var/www/app/public
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.invoiceninja-${NUMBER:-1}.rule=Host(`${DOMAIN:-invoiceninja.localhost}`)
- traefik.http.routers.invoiceninja-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.invoiceninja-${NUMBER:-1}.service=invoiceninja-${NUMBER:-1}
- traefik.http.routers.invoiceninja-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.invoiceninja-${NUMBER:-1}.loadbalancer.server.port=80
networks:
- internal
- traefik
app:
image: invoiceninja/invoiceninja:${VERSION:-5.5.104}
cap_add:
- SYS_ADMIN
volumes:
- ${VOLUME_PATH}storage:/var/www/app/storage:rw,delegated
- ${VOLUME_PATH}data:/var/www/app/public:rw,delegated
environment:
- APP_LOCALE=fr
- APP_ENV=${APP_ENV:-production}
- APP_DEBUG=${APP_DEBUG:-false}
- APP_URL=${SCHEME:-https}://${DOMAIN:-invoiceninja.localhost}
- REQUIRE_HTTPS=${REQUIRE_HTTPS:-true}
- APP_KEY=${APP_KEY:-S0meR@nd0mStringS0meR@nd0mString}
- APP_CIPHER=AES-256-CBC
- LOCK_SENT_INVOICES=${LOCK_SENT_INVOICES:-false}
- DB_USERNAME1=invoiceninja
- DB_PASSWORD1=myp@ssw0rd
- DB_HOST1=mariadb
- DB_DATABASE1=invoiceninja
- MULTI_DB_ENABLED=false
- PRECONFIGURED_INSTALL=true
- MAIL_HOST=${MAIL_HOST:-smtp.example.com}
- MAIL_USERNAME=${MAIL_USERNAME:-username}
- MAIL_PASSWORD=${MAIL_PASSWORD:-password}
- MAIL_PORT=${MAIL_PORT:-587}
- MAIL_ENCRYPTION=${MAIL_ENCRYPTION:-tls}
- MAIL_DRIVER=${MAIL_DRIVER:-smtp}
- MAIL_FROM_NAME=${MAIL_FROM_NAME:-"My name"}
- MAIL_FROM_ADDRESS=${MAIL_FROM_ADDRESS:[email protected]}
- IN_USER_EMAIL=${ADMIN_EMAIL:[email protected]}
- IN_PASSWORD=${ADMIN_PASSWORD:-myp@ssw0rd}
networks:
- internal
mariadb:
image: mariadb:10.5.9
volumes:
- ${VOLUME_PATH}mariadb:/var/lib/mysql:cached
environment:
- MYSQL_ROOT_PASSWORD=myp@ssw0rd
- MYSQL_DATABASE=invoiceninja
- MYSQL_USER=invoiceninja
- MYSQL_PASSWORD=myp@ssw0rd
networks:
- internal
volumes:
mariadb:
data:
storage:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net