Changed directory name
This commit is contained in:
99
templates/InvoiceNinja-TraefikFix/0/docker-compose.yml
Normal file
99
templates/InvoiceNinja-TraefikFix/0/docker-compose.yml
Normal file
@@ -0,0 +1,99 @@
|
||||
version: '2'
|
||||
services:
|
||||
app:
|
||||
image: invoiceninja/invoiceninja:latest
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if (.Values.HOST_LABEL)}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
links:
|
||||
- mysql
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /RancherCattleConfig/${DATA_DIR}/.env:/var/www/app/.env
|
||||
- /RancherCattleData/${DATA_DIR}/Logo:/var/www/app/public/logo
|
||||
- /RancherCattleData/${DATA_DIR}/Storage:/var/www/app/storage
|
||||
cron:
|
||||
image: invoiceninja/invoiceninja:latest
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
entrypoint: |
|
||||
bash -c 'bash -s <<EOF
|
||||
trap "break;exit" SIGHUP SIGINT SIGTERM
|
||||
sleep 300s
|
||||
while /bin/true; do
|
||||
./artisan ninja:send-invoices
|
||||
./artisan ninja:send-reminders
|
||||
sleep 1d
|
||||
done
|
||||
EOF'
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
links:
|
||||
- mysql
|
||||
restart: on-failure
|
||||
volumes_from:
|
||||
- app
|
||||
mysql:
|
||||
image: mysql:5
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
environment:
|
||||
MYSQL_DATABASE: ninja_db
|
||||
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASS}
|
||||
MYSQL_USER: ninja
|
||||
MYSQL_PASSWORD: ${DB_USER_PASS}
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /RancherCattleData/${DATA_DIR}/Database:/var/lib/mysql
|
||||
web:
|
||||
image: nginx
|
||||
command: [nginx-debug, '-g', 'daemon off;']
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
{{- if .Values.TRAEFIK_HOST}}
|
||||
traefik.enable: true
|
||||
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||
traefik.port: "80"
|
||||
traefik.frontend.entryPoints: http,https
|
||||
traefik.frontend.headers.SSLRedirect: true
|
||||
traefik.frontend.passHostHeader: true
|
||||
{{- else}}
|
||||
traefik.enable: false
|
||||
{{- end}}
|
||||
io.rancher.sidekicks: app, cron
|
||||
links:
|
||||
- app
|
||||
networks:
|
||||
- public-proxy
|
||||
ports:
|
||||
- "${WEB_PORT}:80"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /RancherCattleConfig/${DATA_DIR}/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
volumes_from:
|
||||
- app
|
||||
|
||||
networks:
|
||||
public-proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user