Files
docker-compose-cookbooks/nextcloud/docker-compose.yml
T
nick 206ed58eb9 Cleaned up all compose files
cleaned up all the files.
they should now all work for multiple projects.
2020-04-16 21:13:59 -07:00

55 lines
1.3 KiB
YAML

################################################################################
# Nextcloud
# make sure you use the $PREFIX from .env for project_name
# docker-compose -p project_name up -d
#
# Version 1
################################################################################
version: '3.3'
volumes:
mariadb:
nextcloud:
document_data:
document_log:
networks:
traefik_web:
external:
name: ${NETWORK_NAME}
services:
mariadb:
image: mariadb:${DB_V}
restart: always
volumes:
- mariadb:/var/lib/mysql
networks:
- ${NETWORK_NAME}
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_USER: nextcloud
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: nextcloud
nextcloud:
image: nextcloud:${NEXTCLOUD_V}
stdin_open: true
tty: true
networks:
- ${NETWORK_NAME}
restart: always
depends_on:
- ${PREFIX}_mariadb_1
links:
- ${PREFIX}_mariadb_1
volumes:
- nextcloud:/var/www/html
labels:
- "traefik.enable=true"
- "traefik.http.routers.${PREFIX}_nextcloud.rule=Host(`${DOMAIN_NAME}`)"
- "traefik.http.routers.${PREFIX}_nextcloud.entrypoints=websecure"
- "traefik.http.routers.${PREFIX}_nextcloud.tls=true"
- "traefik.http.services.${PREFIX}_nextcloud.loadbalancer.server.port=80"