No More .env

This commit is contained in:
WilliamMiceli
2018-06-24 19:21:56 -04:00
parent c2bb2b9b64
commit a1d417538f

View File

@@ -2,7 +2,14 @@ version: '2'
services: services:
app: app:
image: invoiceninja/invoiceninja image: invoiceninja/invoiceninja
env_file: .env environment:
- APP_DEBUG='0'
- APP_URL='http://localhost:8000'
- APP_CIPHER='AES-256-CBC'
- DB_HOST='mysql'
- DB_DATABASE='ninja'
- DB_USERNAME='root'
- DB_PASSWORD='ninjaPass'
labels: labels:
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
io.rancher.sidekicks: cron, web io.rancher.sidekicks: cron, web
@@ -12,7 +19,6 @@ services:
volumes: volumes:
- ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo - ${STORAGE_BASE_DIR}${LOGO_DIR}:/var/www/app/public/logo
- ${STORAGE_BASE_DIR}${STORAGE_DIR}:/var/www/app/storage - ${STORAGE_BASE_DIR}${STORAGE_DIR}:/var/www/app/storage
- ${STORAGE_BASE_DIR}${CONFIG_DIR}/.env:/var/www/app/.env
cron: cron:
image: invoiceninja/invoiceninja image: invoiceninja/invoiceninja
entrypoint: | entrypoint: |
@@ -25,7 +31,14 @@ services:
sleep 1h sleep 1h
done done
EOF' EOF'
env_file: .env environment:
- APP_DEBUG='0'
- APP_URL='http://localhost:8000'
- APP_CIPHER='AES-256-CBC'
- DB_HOST='mysql'
- DB_DATABASE='ninja'
- DB_USERNAME='root'
- DB_PASSWORD='ninjaPass'
labels: labels:
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
links: links:
@@ -35,7 +48,9 @@ services:
- app - app
db: db:
image: mysql image: mysql
env_file: .env environment:
- MYSQL_DATABASE='ninja'
- MYSQL_ROOT_PASSWORD='ninjaPass'
labels: labels:
io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE} io.rancher.scheduler.affinity:host_label: ${LABEL_KEY_VALUE}
restart: on-failure restart: on-failure