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