upd: docker-compose

Add logging notation
This commit is contained in:
2026-03-26 19:58:21 -04:00
parent 5e6d63ef26
commit 2e4028d623
5 changed files with 61 additions and 7 deletions

View File

@@ -1,22 +1,34 @@
services: services:
sermon-notes: sermon-notes:
image: gitea.rkprather.com/ryan/sermon-notes:latest image: gitea.rkprather.com/ryan/sermon-notes:1.3
container_name: sermon-notes container_name: sermon-notes
hostname: sermon-notes hostname: sermon-notes
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:
- ${HTTP_PORT}:80 - ${HTTP_PORT}:80
volumes: volumes:
- ${PWD}/.env:/var/www/html/.env - ${PWD}/.env:/var/www/html/.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on: depends_on:
- db - db
db: db:
image: mariadb image: mariadb:12.3
container_name: db container_name: db
hostname: db hostname: db
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
volumes: volumes:
- ${PWD}/db_data:/var/lib/mysql - ${PWD}/db_data:/var/lib/mysql

View File

@@ -1,22 +1,34 @@
services: services:
sermon-notes: sermon-notes:
image: gitea.rkprather.com/ryan/sermon-notes:latest image: gitea.rkprather.com/ryan/sermon-notes:1.3
container_name: sermon-notes container_name: sermon-notes
hostname: sermon-notes hostname: sermon-notes
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:
- ${HTTP_PORT}:80 - ${HTTP_PORT}:80
volumes: volumes:
- ${PWD}/.env:/var/www/html/.env - ${PWD}/.env:/var/www/html/.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on: depends_on:
- db - db
db: db:
image: mysql image: mysql:9.6
container_name: db container_name: db
hostname: db hostname: db
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
volumes: volumes:
- ${PWD}/db-data:/var/lib/mysql - ${PWD}/db-data:/var/lib/mysql

View File

@@ -1,14 +1,24 @@
services: services:
sermon-notes: sermon-notes:
container_name: 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 hostname: sermon-notes
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:
- ${HTTP_PORT}:80 - ${HTTP_PORT}:80
volumes: volumes:
- ${PWD}/.env:/var/www/html/.env - ${PWD}/.env:/var/www/html/.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
depends_on: depends_on:
- db - db
@@ -17,7 +27,9 @@ services:
container_name: db container_name: db
hostname: db hostname: db
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
volumes: volumes:
- ${PWD}/db-data:/var/lib/postgresql/data - ${PWD}/db-data:/var/lib/postgresql/data

View File

@@ -1,11 +1,20 @@
services: services:
sermon-notes: sermon-notes:
image: gitea.rkprather.com/ryan/sermon-notes:latest image: gitea.rkprather.com/ryan/sermon-notes:1.3
container_name: sermon-notes container_name: sermon-notes
hostname: sermon-notes hostname: sermon-notes
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:
- ${HTTP_PORT}:80 - ${HTTP_PORT}:80
volumes: volumes:
- ${PWD}/.env:/var/www/html/.env - ${PWD}/.env:/var/www/html/.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"

View File

@@ -1,12 +1,21 @@
services: services:
sermon-notes: sermon-notes:
image: gitea.rkprather.com/ryan/sermon-notes:latest image: gitea.rkprather.com/ryan/sermon-notes:1.3
container_name: sermon-notes container_name: sermon-notes
hostname: sermon-notes hostname: sermon-notes
restart: unless-stopped restart: unless-stopped
env_file: .env env_file: .env
ports: ports:
- ${HTTP_PORT}:80 - ${HTTP_PORT}:80
volumes: volumes:
- ${PWD}/data:/data - ${PWD}/data:/data
- ${PWD}/.env:/var/www/html/.env - ${PWD}/.env:/var/www/html/.env
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"