Merge cron and redis example

This commit is contained in:
Tilo Spannagel 2017-08-13 13:03:54 +02:00
parent 53b8aabfe9
commit 5f041a6249
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
9 changed files with 6 additions and 50 deletions

View File

@ -12,6 +12,10 @@ services:
env_file:
- db.env
redis:
image: redis
restart: always
app:
build: ./app
restart: always
@ -23,6 +27,7 @@ services:
- db.env
links:
- db
- redis
cron:
build: ./app
@ -31,6 +36,7 @@ services:
- nextcloud:/var/www/html
links:
- db
- redis
user: www-data
entrypoint: |
bash -c 'bash -s <<EOF

View File

@ -1,3 +0,0 @@
FROM nextcloud:apache
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php

View File

@ -1,10 +0,0 @@
<?php
$AUTOCONFIG = array(
'directory' => '/var/www/html/data',
'dbtype' => 'mysql',
'dbname' => getenv('MYSQL_DATABASE'),
'dbuser' => getenv('MYSQL_USER'),
'dbpass' => getenv('MYSQL_PASSWORD'),
'dbhost' => 'db',
'dbtableprefix' => '',
);

View File

@ -1,3 +0,0 @@
MYSQL_PASSWORD=
MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud

View File

@ -1,34 +0,0 @@
version: '3'
services:
db:
image: mariadb
# image: mysql
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
env_file:
- db.env
redis:
image: redis
restart: always
app:
build: ./app
restart: always
ports:
- 8080:80
volumes:
- nextcloud:/var/www/html
env_file:
- db.env
links:
- db
- redis
volumes:
db:
nextcloud: