mirror of
https://github.com/paradizelost/docker.git
synced 2025-08-25 13:56:02 +00:00
First commit of my docker env
This commit is contained in:
41
nextcloud/docker-compose.yml
Normal file
41
nextcloud/docker-compose.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
version: '2'
|
||||
|
||||
volumes:
|
||||
nextcloud:
|
||||
db:
|
||||
|
||||
services:
|
||||
db:
|
||||
container_name: nextclouddb
|
||||
hostname: nextclouddb
|
||||
image: mariadb
|
||||
logging:
|
||||
options:
|
||||
max-file: "3"
|
||||
max-size: "10m"
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
restart: always
|
||||
volumes:
|
||||
- ./data/db:/var/lib/mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_DATABASE: ${MYSQL_DATABASE}
|
||||
MYSQL_USER: ${MYSQL_USER}
|
||||
|
||||
app:
|
||||
image: nextcloud
|
||||
container_name: nextcloud
|
||||
hostname: nextcloud
|
||||
logging:
|
||||
options:
|
||||
max-file: "3"
|
||||
max-size: "10m"
|
||||
ports:
|
||||
- 8087:80
|
||||
links:
|
||||
- db
|
||||
volumes:
|
||||
- ./data/nextcloud:/var/www/html
|
||||
restart: always
|
||||
|
Reference in New Issue
Block a user