Merge cron and redis example
This commit is contained in:
parent
53b8aabfe9
commit
5f041a6249
@ -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
|
@ -1,3 +0,0 @@
|
||||
FROM nextcloud:apache
|
||||
|
||||
COPY autoconfig.php /usr/src/nextcloud/config/autoconfig.php
|
@ -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' => '',
|
||||
);
|
@ -1,3 +0,0 @@
|
||||
MYSQL_PASSWORD=
|
||||
MYSQL_DATABASE=nextcloud
|
||||
MYSQL_USER=nextcloud
|
@ -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:
|
Loading…
Reference in New Issue
Block a user