mirror of
https://github.com/dustinbrun/docker-compose-homeserver.git
synced 2025-08-25 04:20:26 +02:00
Version 1
This commit is contained in:
32
nextcloud/docker-compose.yml
Normal file
32
nextcloud/docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: '2'
|
||||
|
||||
volumes:
|
||||
nextcloud:
|
||||
db:
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
restart: always
|
||||
volumes:
|
||||
- ./db:/var/lib/mysql
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=changeme
|
||||
- MYSQL_PASSWORD=changeme
|
||||
- MYSQL_DATABASE=nextcloud
|
||||
- MYSQL_USER=nextcloud
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
- ./nextcloud:/var/www/html
|
||||
- ./nextcloud_data:/var/www/html/data
|
||||
restart: always
|
Reference in New Issue
Block a user