got all the vars onto the dotenv file

This commit is contained in:
danielgroen
2021-02-09 11:35:45 +01:00
parent c6e122b81f
commit 4d7cc8e464
3 changed files with 36 additions and 23 deletions

View File

@@ -1,4 +1,7 @@
APP_URL=http://in.localhost:8003/ APP_URL=http://${CNAME}:${port}
PORT=8003
CNAME=in.localhost
APP_KEY=<insert your generated key in here> APP_KEY=<insert your generated key in here>
APP_DEBUG=true APP_DEBUG=true
MULTI_DB_ENABLED=false MULTI_DB_ENABLED=false
@@ -16,4 +19,4 @@ DB_HOST=db
DB_DATABASE=ninja DB_DATABASE=ninja
DB_USERNAME=ninja DB_USERNAME=ninja
DB_PASSWORD=ninja DB_PASSWORD=ninja
APP_CIPHER=AES-256-CBC APP_CIPHER=AES-256-CBC

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
*.sql
# docker/*
.env
!.env.example

View File

@@ -1,10 +1,10 @@
version: '3.7' version: "3.7"
services: services:
server: server:
image: nginx image: nginx
restart: always restart: always
env_file: env env_file: .env
volumes: volumes:
# Vhost configuration # Vhost configuration
#- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com #- ./config/caddy/Caddyfile:/etc/caddy/Caddyfiledocker-com
@@ -15,17 +15,17 @@ services:
- app - app
# Run webserver nginx on port 80 # Run webserver nginx on port 80
# Feel free to modify depending what port is already occupied # Feel free to modify depending what port is already occupied
ports: ports:
- "80:80" - ${PORT}:80
#- "443:443" #- "443:443"
networks: networks:
- invoiceninja - invoiceninja
extra_hosts: extra_hosts:
- "in5.localhost:192.168.0.124 " #host and ip - "${CNAME}:192.168.0.124 " #host and ip
app: app:
image: invoiceninja/invoiceninja:5 image: invoiceninja/invoiceninja:5
env_file: env env_file: .env
restart: always restart: always
volumes: volumes:
- ./config/hosts:/etc/hosts:ro - ./config/hosts:/etc/hosts:ro
@@ -34,35 +34,40 @@ services:
- ./docker/app/storage:/var/www/app/storage:rw,delegated - ./docker/app/storage:/var/www/app/storage:rw,delegated
depends_on: depends_on:
- db - db
networks: networks:
- invoiceninja - invoiceninja
extra_hosts: extra_hosts:
- "in5.localhost:192.168.0.124 " #host and ip - "${CNAME}:192.168.0.124 " #host and ip
db: db:
image: mysql:5 image: mysql:5
env_file: .env
ports: ports:
- "3305:3306" - "3305:3306"
restart: always restart: always
environment: environment:
- MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword - MYSQL_ROOT_PASSWORD=${DB_PASSWORD1} # config for 5
- MYSQL_USER=ninja - MYSQL_USER=${DB_USERNAME1}
- MYSQL_PASSWORD=ninja - MYSQL_PASSWORD=${DB_PASSWORD1}
- MYSQL_DATABASE=ninja - MYSQL_DATABASE=${DB_DATABASE1}
# - MYSQL_ROOT_PASSWORD=${DB_PASSWORD} # config for 4
# - MYSQL_USER=${DB_USERNAME}
# - MYSQL_PASSWORD=${DB_PASSWORD}
# - MYSQL_DATABASE=${DB_DATABASE}
volumes: volumes:
- ./docker/mysql/data:/var/lib/mysql:rw,delegated - ./docker/mysql/data:/var/lib/mysql:rw,delegated
networks: networks:
- invoiceninja - invoiceninja
extra_hosts: extra_hosts:
- "in5.localhost:192.168.0.124 " #host and ip - "${CNAME}:192.168.0.124 " #host and ip
# THIS IS ONLY A VALID CONFIGURATION FOR IN 4. DO NOT USE FOR IN 5. # THIS IS ONLY A VALID CONFIGURATION FOR IN 4. DO NOT USE FOR IN 5.
# cron: # cron:
# image: invoiceninja/invoiceninja:alpine-4 # image: invoiceninja/invoiceninja:alpine-4
# volumes: # volumes:
# - ./docker/app/public:/var/www/app/public:rw,delegated # - ./docker/app/public:/var/www/app/public:rw,delegated
# - ./docker/app/storage:/var/www/app/storage:rw,delegated # - ./docker/app/storage:/var/www/app/storage:rw,delegated
# - ./docker/app/public/logo:/var/www/app/public/logo:rw,delegated # - ./docker/app/public/logo:/var/www/app/public/logo:rw,delegated
# entrypoint: | # entrypoint: |
# /bin/sh -c 'sh -s <<EOF # /bin/sh -c 'sh -s <<EOF
# trap "break;exit" SIGHUP SIGINT SIGTERM # trap "break;exit" SIGHUP SIGINT SIGTERM
@@ -75,7 +80,7 @@ services:
# EOF' # EOF'
# networks: # networks:
# - invoiceninja # - invoiceninja
# #
networks: networks:
invoiceninja: invoiceninja: