mirror of
https://github.com/nextcloud/docker.git
synced 2025-06-16 08:14:46 +02:00
Update examples section according to the latest docker compose requirements.
Signed-off-by: Kaloyan Nikolov <tzerber@gmail.com>
This commit is contained in:
parent
a1e93f429c
commit
6dc29f2a72
21 changed files with 675 additions and 148 deletions
|
@ -1,9 +1,11 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:alpine
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
volumes:
|
||||
- db:/var/lib/postgresql/data:Z
|
||||
env_file:
|
||||
|
@ -16,12 +18,16 @@ services:
|
|||
app:
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
ports:
|
||||
- 127.0.0.1:8080:80
|
||||
volumes:
|
||||
- nextcloud:/var/www/html:z
|
||||
environment:
|
||||
- POSTGRES_HOST=db
|
||||
- MYSQL_HOST=db
|
||||
- REDIS_HOST=redis
|
||||
env_file:
|
||||
- db.env
|
||||
|
@ -32,6 +38,10 @@ services:
|
|||
cron:
|
||||
image: nextcloud:apache
|
||||
restart: always
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
volumes:
|
||||
- nextcloud:/var/www/html:z
|
||||
entrypoint: /cron.sh
|
||||
|
@ -41,4 +51,4 @@ services:
|
|||
|
||||
volumes:
|
||||
db:
|
||||
nextcloud:
|
||||
nextcloud:
|
Loading…
Add table
Add a link
Reference in a new issue