Compare commits
2 Commits
39ef5a4c49
...
2e4028d623
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e4028d623 | |||
| 5e6d63ef26 |
11
Dockerfile
11
Dockerfile
@@ -15,7 +15,6 @@ RUN apt update && \
|
||||
curl \
|
||||
git \
|
||||
cron \
|
||||
logrotate \
|
||||
nano
|
||||
|
||||
RUN service start cron
|
||||
@@ -51,16 +50,6 @@ RUN mv 000-default.conf /etc/apache2/sites-available/
|
||||
RUN echo "20 1 * * 6 root cd /var/www/html && /usr/local/bin/php bin/console app:get-audio > /var/log/sermon-notes.log 2>&1" > /etc/cron.d/get-audio
|
||||
RUN chmod 644 /etc/cron.d/get-audio
|
||||
|
||||
RUN echo "/var/log/sermon-notes.log {
|
||||
monthly
|
||||
rotate 12
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
}" > /etc/logrotate.d/sermon-notes
|
||||
|
||||
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install --no-scripts --no-dev --optimize-autoloader
|
||||
RUN /usr/local/bin/php bin/console asset-map:compile
|
||||
RUN mkdir /data
|
||||
|
||||
@@ -1,22 +1,34 @@
|
||||
services:
|
||||
sermon-notes:
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:latest
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:1.3
|
||||
container_name: sermon-notes
|
||||
hostname: sermon-notes
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
volumes:
|
||||
- ${PWD}/.env:/var/www/html/.env
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mariadb
|
||||
image: mariadb:12.3
|
||||
container_name: db
|
||||
hostname: db
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
volumes:
|
||||
- ${PWD}/db_data:/var/lib/mysql
|
||||
|
||||
@@ -1,22 +1,34 @@
|
||||
services:
|
||||
sermon-notes:
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:latest
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:1.3
|
||||
container_name: sermon-notes
|
||||
hostname: sermon-notes
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
volumes:
|
||||
- ${PWD}/.env:/var/www/html/.env
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
image: mysql
|
||||
image: mysql:9.6
|
||||
container_name: db
|
||||
hostname: db
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
volumes:
|
||||
- ${PWD}/db-data:/var/lib/mysql
|
||||
|
||||
@@ -1,14 +1,24 @@
|
||||
services:
|
||||
sermon-notes:
|
||||
container_name: sermon-notes
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:latest
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:1.3
|
||||
hostname: sermon-notes
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
volumes:
|
||||
- ${PWD}/.env:/var/www/html/.env
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
@@ -17,7 +27,9 @@ services:
|
||||
container_name: db
|
||||
hostname: db
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
volumes:
|
||||
- ${PWD}/db-data:/var/lib/postgresql/data
|
||||
|
||||
@@ -1,11 +1,20 @@
|
||||
services:
|
||||
sermon-notes:
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:latest
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:1.3
|
||||
container_name: sermon-notes
|
||||
hostname: sermon-notes
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
volumes:
|
||||
- ${PWD}/.env:/var/www/html/.env
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
|
||||
@@ -1,12 +1,21 @@
|
||||
services:
|
||||
sermon-notes:
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:latest
|
||||
image: gitea.rkprather.com/ryan/sermon-notes:1.3
|
||||
container_name: sermon-notes
|
||||
hostname: sermon-notes
|
||||
restart: unless-stopped
|
||||
|
||||
env_file: .env
|
||||
|
||||
ports:
|
||||
- ${HTTP_PORT}:80
|
||||
|
||||
volumes:
|
||||
- ${PWD}/data:/data
|
||||
- ${PWD}/.env:/var/www/html/.env
|
||||
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
Reference in New Issue
Block a user