Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f9d7f0
commit dcaae95
Showing
8 changed files
with
109 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
version: "3.7" | ||
|
||
services: | ||
db: | ||
image: mariadb:10.5.8@sha256:8040983db146f729749081c6b216a19d52e0973134e2e34c0b4fd87f48bc15b0 | ||
user: "1000:1000" | ||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW | ||
restart: on-failure | ||
volumes: | ||
- ${APP_DATA_DIR}/data/db:/var/lib/mysql | ||
environment: | ||
- MYSQL_ROOT_PASSWORD=moneyprintergobrrr | ||
- MYSQL_PASSWORD=moneyprintergobrrr | ||
- MYSQL_DATABASE=nextcloud | ||
- MYSQL_USER=nextcloud | ||
networks: | ||
default: | ||
ipv4_address: $APP_NEXTCLOUD_DB_IP | ||
|
||
redis: | ||
image: redis:6.2.2-buster@sha256:e10f55f92478715698a2cef97c2bbdc48df2a05081edd884938903aa60df6396 | ||
user: "1000:1000" | ||
restart: on-failure | ||
volumes: | ||
- "${APP_DATA_DIR}/data/redis:/data" | ||
networks: | ||
default: | ||
ipv4_address: $APP_NEXTCLOUD_REDIS_IP | ||
|
||
web: | ||
image: nextcloud:22.0.0-apache@sha256:55de721417c16ff110720217406778e16f1b63154d2e8d42fc7913c37dbe6d50 | ||
# Currently needs to be run as root, if we run as uid 1000 this fails | ||
# https://github.com/nextcloud/docker/blob/05026b029d37fc5cd488d4a4a2a79480e39841ba/21.0/apache/entrypoint.sh#L53-L77 | ||
# user: "1000:1000" | ||
restart: on-failure | ||
ports: | ||
- ${APP_NEXTCLOUD_PORT}:80 | ||
volumes: | ||
- ${APP_DATA_DIR}/data/nextcloud:/var/www/html | ||
environment: | ||
- MYSQL_HOST=${APP_NEXTCLOUD_DB_IP} | ||
- REDIS_HOST=${APP_NEXTCLOUD_REDIS_IP} | ||
- MYSQL_PASSWORD=moneyprintergobrrr | ||
- MYSQL_DATABASE=nextcloud | ||
- MYSQL_USER=nextcloud | ||
- NEXTCLOUD_TRUSTED_DOMAINS=${APP_DOMAIN}:${APP_NEXTCLOUD_PORT} ${APP_HIDDEN_SERVICE} | ||
depends_on: | ||
- db | ||
- redis | ||
networks: | ||
default: | ||
ipv4_address: $APP_NEXTCLOUD_IP | ||
|
||
cron: | ||
image: nextcloud:22.0.0-apache@sha256:55de721417c16ff110720217406778e16f1b63154d2e8d42fc7913c37dbe6d50 | ||
# Currently needs to be run as root, if we run as uid 1000 this fails | ||
# https://github.com/nextcloud/docker/blob/05026b029d37fc5cd488d4a4a2a79480e39841ba/21.0/apache/entrypoint.sh#L53-L77 | ||
# user: "1000:1000" | ||
restart: on-failure | ||
volumes: | ||
- ${APP_DATA_DIR}/data/nextcloud:/var/www/html | ||
entrypoint: /cron.sh | ||
depends_on: | ||
- db | ||
- redis | ||
networks: | ||
default: | ||
ipv4_address: $APP_NEXTCLOUD_CRON_IP |
This file contains 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
This file contains 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
This file contains 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
This file contains 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