mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-29 16:01:04 +01:00
64 lines
1.5 KiB
Django/Jinja
64 lines
1.5 KiB
Django/Jinja
version: '3'
|
|
|
|
services:
|
|
application:
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
|
restart: always
|
|
logging:
|
|
driver: journald
|
|
depends_on:
|
|
- database
|
|
volumes:
|
|
- data:/var/www/html
|
|
environment:
|
|
MYSQL_DATABASE: "nextcloud"
|
|
MYSQL_USER: "nextcloud"
|
|
MYSQL_PASSWORD: "{{nextcloud_database_password}}"
|
|
MYSQL_HOST: database:3306
|
|
database:
|
|
logging:
|
|
driver: journald
|
|
image: mariadb
|
|
command: "--transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed"
|
|
environment:
|
|
MYSQL_DATABASE: "nextcloud"
|
|
MYSQL_USER: "nextcloud"
|
|
MYSQL_PASSWORD: "{{nextcloud_database_password}}"
|
|
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
|
|
volumes:
|
|
- database:/var/lib/mysql
|
|
restart: always
|
|
web:
|
|
image: nginx:alpine
|
|
logging:
|
|
driver: journald
|
|
restart: always
|
|
ports:
|
|
- "127.0.0.1:{{http_port}}:80"
|
|
depends_on:
|
|
- application
|
|
volumes:
|
|
- /home/administrator/volumes/docker/nextcloud/nginx.conf:/etc/nginx/nginx.conf:ro
|
|
volumes_from:
|
|
- application
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
cron:
|
|
image: "nextcloud:{{nextcloud_version}}-fpm-alpine"
|
|
restart: always
|
|
logging:
|
|
driver: journald
|
|
volumes:
|
|
- data:/var/www/html
|
|
entrypoint: /cron.sh
|
|
depends_on:
|
|
- database
|
|
- redis
|
|
volumes:
|
|
database:
|
|
data:
|
|
networks:
|
|
default:
|
|
driver: bridge
|