mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
cleaned up nextcloud and added env
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
.env
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
version: '3.3'
|
version: '3.3'
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
nc-mariadb:
|
mariadb:
|
||||||
nc-nextcloud:
|
nextcloud:
|
||||||
nc-document_data:
|
document_data:
|
||||||
nc-document_log:
|
document_log:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
traefik_web:
|
traefik_web:
|
||||||
@@ -13,39 +13,35 @@ networks:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
nc-mariadb:
|
mariadb:
|
||||||
image: mariadb:10.4.11
|
image: mariadb:10.4.11
|
||||||
container_name: nc-mariadb
|
|
||||||
hostname: nc-mariadb
|
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- nc-mariadb:/var/lib/mysql
|
- mariadb:/var/lib/mysql
|
||||||
networks:
|
networks:
|
||||||
- traefik_web
|
- traefik_web
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: <changeme>
|
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||||
MYSQL_USER: nextcloud
|
MYSQL_USER: nextcloud
|
||||||
MYSQL_PASSWORD: <changeme>
|
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||||
MYSQL_DATABASE: nextcloud
|
MYSQL_DATABASE: nextcloud
|
||||||
|
|
||||||
nc-nextcloud:
|
nextcloud:
|
||||||
image: nextcloud:18.0.3-apache
|
image: nextcloud:18.0.3-apache
|
||||||
container_name: nc-nextcloud
|
|
||||||
hostname: nc-nextcloud
|
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
networks:
|
networks:
|
||||||
- traefik_web
|
- traefik_web
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- nc-mariadb
|
- mariadb
|
||||||
links:
|
links:
|
||||||
- nc-mariadb
|
- mariadb
|
||||||
volumes:
|
volumes:
|
||||||
- nc-nextcloud:/var/www/html
|
- nextcloud:/var/www/html
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.nextcloud.rule=Host(`nextcloud.nickyeoman.com`)"
|
- "traefik.http.routers.nextcloud.rule=Host(`${DOMAIN_NAME}`)"
|
||||||
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
- "traefik.http.routers.nextcloud.entrypoints=websecure"
|
||||||
- "traefik.http.routers.nextcloud.tls=true"
|
- "traefik.http.routers.nextcloud.tls=true"
|
||||||
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
- "traefik.http.services.nextcloud.loadbalancer.server.port=80"
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
# Rename this file to .env
|
||||||
|
DOMAIN_NAME=nextcloud.nickyeoman.com
|
||||||
|
MYSQL_PASSWORD=MyNotSecurePassword1234
|
||||||
|
MYSQL_ROOT_PASSWORD=AlsoNotSecure
|
||||||
Reference in New Issue
Block a user