Compare commits
3 Commits
main
...
health-che
Author | SHA1 | Date | |
---|---|---|---|
|
e4b74c9fb9 | ||
|
afab2587f4 | ||
|
6fe9a21baf |
|
@ -3,3 +3,4 @@ DOMAIN=example.com
|
||||||
UID=1000
|
UID=1000
|
||||||
GID=1000
|
GID=1000
|
||||||
TZ=Etc/UTC
|
TZ=Etc/UTC
|
||||||
|
DBPASS=
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
.env
|
.env
|
||||||
config/
|
config/
|
||||||
|
nextcloud/
|
||||||
|
nextcloud_bak/
|
|
@ -195,26 +195,41 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
wordpress-botc:
|
wordpress-botc:
|
||||||
depends_on:
|
depends_on:
|
||||||
- db-botc
|
db-botc:
|
||||||
|
condition: service_healthy
|
||||||
image: wordpress
|
image: wordpress
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 8089:80
|
- 8089:80
|
||||||
environment:
|
environment:
|
||||||
WORDPRESS_DB_HOST: db-botc
|
WORDPRESS_DB_HOST: db-botc
|
||||||
WORDPRESS_DB_USER: exampleuser
|
WORDPRESS_DB_USER: botc
|
||||||
WORDPRESS_DB_PASSWORD: examplepass
|
WORDPRESS_DB_PASSWORD: ${DBPASS}
|
||||||
WORDPRESS_DB_NAME: exampledb
|
WORDPRESS_DB_NAME: botcdb
|
||||||
VIRTUAL_HOST: "phillybotc.com, *.phillybotc.com"
|
VIRTUAL_HOST: "phillybotc.com, *.phillybotc.com"
|
||||||
volumes:
|
volumes:
|
||||||
- wordpress-botc:/var/www/html
|
- wordpress-botc:/var/www/html
|
||||||
db-botc:
|
db-botc:
|
||||||
image: mysql:latest
|
image: mysql:latest
|
||||||
|
healthcheck:
|
||||||
|
test:
|
||||||
|
[
|
||||||
|
"CMD",
|
||||||
|
'mysqladmin',
|
||||||
|
'ping',
|
||||||
|
'-h',
|
||||||
|
'localhost',
|
||||||
|
'-u',
|
||||||
|
'$$WORDPRESS_DB_USER',
|
||||||
|
'-p$$WORDPRESS_DB_PASSWORD'
|
||||||
|
]
|
||||||
|
timeout: 20s
|
||||||
|
retries: 10
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: exampledb
|
MYSQL_DATABASE: botcdb
|
||||||
MYSQL_USER: exampleuser
|
MYSQL_USER: botc
|
||||||
MYSQL_PASSWORD: examplepass
|
MYSQL_PASSWORD: ${DBPASS}
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||||
volumes:
|
volumes:
|
||||||
- db-botc:/var/lib/mysql
|
- db-botc:/var/lib/mysql
|
||||||
|
@ -243,48 +258,8 @@ services:
|
||||||
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
MYSQL_RANDOM_ROOT_PASSWORD: '1'
|
||||||
volumes:
|
volumes:
|
||||||
- db-home:/var/lib/mysql
|
- db-home:/var/lib/mysql
|
||||||
#Nextcloud
|
|
||||||
nc-db:
|
|
||||||
image: mariadb
|
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- nc-db:/var/lib/mysql
|
|
||||||
env_file:
|
|
||||||
- ./nextcloud/db.env
|
|
||||||
nc-redis:
|
|
||||||
image: redis
|
|
||||||
restart: always
|
|
||||||
nc-app:
|
|
||||||
build: ./nextcloud/app
|
|
||||||
restart: always
|
|
||||||
ports:
|
|
||||||
- 5234:80
|
|
||||||
volumes:
|
|
||||||
- nextcloud:/var/www/html
|
|
||||||
- /media/storage/Cloud/Nextcloud:/storage
|
|
||||||
environment:
|
|
||||||
- NEXTCLOUD_DATA_DIR=/storage
|
|
||||||
- MYSQL_HOST=nc-db
|
|
||||||
- VIRTUAL_HOST=cloud.${DOMAIN}
|
|
||||||
env_file:
|
|
||||||
- ./nextcloud/db.env
|
|
||||||
depends_on:
|
|
||||||
- nc-db
|
|
||||||
- nc-redis
|
|
||||||
cron:
|
|
||||||
build: ./nextcloud/app
|
|
||||||
restart: always
|
|
||||||
volumes:
|
|
||||||
- nextcloud:/var/www/html
|
|
||||||
entrypoint: /cron.sh
|
|
||||||
depends_on:
|
|
||||||
- nc-db
|
|
||||||
- nc-redis
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
nc-db:
|
|
||||||
nextcloud:
|
|
||||||
wordpress-home:
|
wordpress-home:
|
||||||
db-home:
|
db-home:
|
||||||
wordpress-botc:
|
wordpress-botc:
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
FROM nextcloud:apache
|
|
||||||
|
|
||||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
|
||||||
|
|
||||||
ARG NEXTCLOUD_DATA_DIR="/storage/"
|
|
||||||
|
|
||||||
RUN echo ${NEXTCLOUD_DATA_DIR}
|
|
||||||
RUN mkdir -p ${NEXTCLOUD_DATA_DIR}; \
|
|
||||||
chown -R www-data:root ${NEXTCLOUD_DATA_DIR}; \
|
|
||||||
chmod -R g=u ${NEXTCLOUD_DATA_DIR}
|
|
||||||
|
|
||||||
VOLUME ${NEXTCLOUD_DATA_DIR}
|
|
||||||
|
|
||||||
#ENTRYPOINT ["/entrypoint.sh"]
|
|
||||||
#CMD ["php-fpm"]
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM nextcloud:apache
|
|
||||||
|
|
||||||
COPY redis.config.php /usr/src/nextcloud/config/redis.config.php
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
<?php
|
|
||||||
$CONFIG = array (
|
|
||||||
'memcache.local' => '\\OC\\Memcache\\Redis',
|
|
||||||
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
|
||||||
'filelocking.enabled' => 'true',
|
|
||||||
'redis' => array(
|
|
||||||
'host' => 'redis',
|
|
||||||
'port' => 6379,
|
|
||||||
),
|
|
||||||
);
|
|
|
@ -1,4 +0,0 @@
|
||||||
MYSQL_ROOT_PASSWORD=neurobomber
|
|
||||||
MYSQL_PASSWORD=ncpass
|
|
||||||
MYSQL_DATABASE=nextcloud
|
|
||||||
MYSQL_USER=nextcloud
|
|
Loading…
Reference in New Issue
Block a user