You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.5 KiB
97 lines
2.5 KiB
version: "3.5" |
|
|
|
networks: |
|
webNet: |
|
external: true |
|
name: webNet |
|
backend: |
|
internal: true |
|
|
|
services: |
|
mysql_nextcloud: |
|
# <10.6 !!! nexcloud and mariadb 10.6 are not compatibel |
|
image: mariadb:10.5 |
|
container_name: mysql_nextcloud |
|
networks: |
|
- backend |
|
restart: unless-stopped |
|
volumes: |
|
- ./_data_/db.mysql/db:/var/lib/mysql |
|
# import an existing DB |
|
#- /home/titzi/db/nextcloud.sql:/docker-entrypoint-initdb.d/import.sql |
|
environment: |
|
MYSQL_USER: nextcloud |
|
MYSQL_DATABASE: nextcloud |
|
MYSQL_PASSWORD_FILE: /run/secrets/mysql_nextcloud_password |
|
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/mysql_root_password |
|
secrets: |
|
- mysql_root_password |
|
- mysql_nextcloud_password |
|
|
|
redis: |
|
image: redis:alpine |
|
container_name: redis |
|
networks: |
|
- backend |
|
restart: unless-stopped |
|
|
|
cron: |
|
#TODO version in variable |
|
image: nextcloud:23 |
|
container_name: nextcloud-cron |
|
restart: unless-stopped |
|
networks: |
|
- backend |
|
volumes: |
|
#TODO vlumen unten defenieren |
|
- ./_data_/nextcloud/root:/var/www/html |
|
- ./_data_/nextcloud/custom_apps:/var/www/html/custom_apps |
|
- ./_data_/nextcloud/config:/var/www/html/config |
|
- ./_data_/nextcloud/data:/var/www/html/data |
|
entrypoint: /cron.sh |
|
depends_on: |
|
- mysql_nextcloud |
|
- redis |
|
|
|
nextcloud: |
|
depends_on: |
|
- mysql_nextcloud |
|
- redis |
|
image: nextcloud:23 |
|
container_name: nextcloud |
|
networks: |
|
- webNet |
|
- backend |
|
restart: unless-stopped |
|
volumes: |
|
- ./_data_/nextcloud/root:/var/www/html |
|
- ./_data_/nextcloud/custom_apps:/var/www/html/custom_apps |
|
- ./_data_/nextcloud/config:/var/www/html/config |
|
- ./_data_/nextcloud/data:/var/www/html/data |
|
environment: |
|
REDIS_HOST: redis |
|
MYSQL_HOST: mysql_nextcloud |
|
MYSQL_DATABASE: nextcloud |
|
MYSQL_USER: nextcloud |
|
MYSQL_PASSWORD_FILE: /run/secrets/mysql_nextcloud_password |
|
NEXTCLOUD_TABLE_PREFIX: "oc_" |
|
NEXTCLOUD_ADMIN_USER: nextcloud-admin |
|
NEXTCLOUD_ADMIN_PASSWORD_FILE: /run/secrets/nextcloud_admin_password |
|
VIRTUAL_HOST: nextcloud.ckris.de |
|
LETSENCRYPT_HOST: nextcloud.ckris.de |
|
LETSENCRYPT_EMAIL: webmaster@ckris.de |
|
secrets: |
|
- mysql_nextcloud_password |
|
- nextcloud_admin_password |
|
|
|
secrets: |
|
mysql_nextcloud_password: |
|
file: ./secrets/mysql_nextcloud_password |
|
mysql_root_password: |
|
file: ./secrets/mysql_root_password |
|
nextcloud_admin_password: |
|
file: ./secrets/nextcloud_admin_password |
|
|
|
|
|
|
|
|
|
|