Skip to content
Snippets Groups Projects
Commit b3fdd4a0 authored by jurgenhaas's avatar jurgenhaas
Browse files

#68 Add support for invoice ninja

parent f79c2ca5
No related branches found
No related tags found
1 merge request!83Merging develop into main
Pipeline #1157646 passed
......@@ -252,6 +252,7 @@ class Handler extends BaseHandler {
}
$this->config->setValue('projectroot', $projectRoot, FALSE);
$this->config->setValue('projectrootfiles', $projectRoot, FALSE);
$this->config->setValue('projectrootinvoiceninja', $projectRoot, FALSE);
$this->config->setValue('projectdomain', str_replace('_', '-', $this->config->readValue('projectname')) . '.' . $traefik['domain'], FALSE);
$this->config->setValue('projectprotocol', 'http' . ($traefik['usessl'] ? 's' : ''), FALSE);
$this->config->setValue('socketprotocol', 'ws' . ($traefik['usessl'] ? 's' : ''), FALSE);
......@@ -365,6 +366,7 @@ class Handler extends BaseHandler {
'projectrootdb' => $root . '/db',
'projectrootfiles' => $root . '/files',
'projectrootredis' => $root . '/redis',
'projectrootinvoiceninja' => $root . '/in',
'projectname' => getenv('PROJECT_NAME') . '_' . getenv('CI_COMMIT_REF_SLUG'),
'projectdomain' => str_replace('_', '-', $this->config->readValue('domain') ?? ''),
'projectprotocol' => 'https',
......
......@@ -642,7 +642,7 @@ services:
volumes:
- '/etc/timezone:/etc/timezone:ro'
- '/etc/localtime:/etc/localtime:ro'
- '{{ projectrootfiles }}/in/db:/var/lib/mysql:rw,delegated'
- '{{ projectrootinvoiceninja }}/db:/var/lib/mysql:rw,delegated'
in-app:
# After first startup, call "sudo chown -R 1500:1500 app" and start again.
image: 'invoiceninja/invoiceninja:5'
......@@ -677,8 +677,8 @@ services:
volumes:
- '/etc/timezone:/etc/timezone:ro'
- '/etc/localtime:/etc/localtime:ro'
- '{{ projectrootfiles }}/in/app/public:/var/www/app/public:rw,delegated'
- '{{ projectrootfiles }}/in/app/storage:/var/www/app/storage:rw,delegated'
- '{{ projectrootinvoiceninja }}/public:/var/www/app/public:rw,delegated'
- '{{ projectrootinvoiceninja }}/storage:/var/www/app/storage:rw,delegated'
in-web:
image: nginx
networks:
......@@ -690,7 +690,7 @@ services:
- '/etc/timezone:/etc/timezone:ro'
- '/etc/localtime:/etc/localtime:ro'
- '{{ projectroot }}/nginx/in-vhost.conf:/etc/nginx/conf.d/in-vhost.conf:ro'
- '{{ projectrootfiles }}/in/app/public:/var/www/app/public:ro'
- '{{ projectrootinvoiceninja }}/public:/var/www/app/public:ro'
labels:
traefik.enable: 'true'
traefik.docker.network: traefik-public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment