Last active
February 20, 2024 02:44
-
-
Save utarn/9bd7db5e3f19464036042929a51444ea to your computer and use it in GitHub Desktop.
Nextcloud docker-compose.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
db: | |
image: mariadb:10.6 | |
restart: always | |
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW | |
volumes: | |
- ./database:/var/lib/mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=nextcloud | |
- MYSQL_PASSWORD=nextcloud | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
networks: | |
- nextapp | |
app: | |
image: nextcloud:27-apache | |
restart: always | |
links: | |
- db | |
- redis | |
volumes: | |
- ./www:/var/www/html | |
- ./data:/var/www/html/data | |
environment: | |
- MYSQL_PASSWORD=nextcloud | |
- MYSQL_DATABASE=nextcloud | |
- MYSQL_USER=nextcloud | |
- MYSQL_HOST=db | |
- REDIS_HOST=redis | |
- OVERWRITEPROTOCOL=https | |
- NEXTCLOUD_TRUSTED_DOMAINS="nextcloud.mydomain.com" | |
- OVERWRITECLIURL=https://nextcloud.mydomain.com | |
ports: | |
- 127.0.0.1:5001:80 | |
networks: | |
- nextapp | |
redis: | |
image: redis:latest | |
restart: always | |
volumes: | |
- ./redis:/data | |
networks: | |
- nextapp | |
networks: | |
nextapp: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment