Finished final raw draft of central database implementation. UNTESTED.

This commit is contained in:
2024-01-03 11:38:09 +01:00
parent 884b9370bb
commit 509914fb86
29 changed files with 159 additions and 176 deletions

View File

@@ -14,13 +14,13 @@ services:
env_file:
- ./env
volumes:
- "application_data:/var/www/storage"
- "data:/var/www/storage"
- "bootstrap:/var/www/bootstrap"
- "./env:/var/www/.env"
ports:
- "{{http_port}}:80"
{% include 'templates/docker-container-depends-on.yml.j2' %}
redis:
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
{% include 'templates/docker-container-networks.yml.j2' %}
worker:
image: zknt/pixelfed
restart: always
@@ -29,7 +29,7 @@ services:
env_file:
- ./env
volumes:
- "application_data:/var/www/storage"
- "data:/var/www/storage"
- "bootstrap:/var/www/bootstrap"
- "./env:/var/www/.env"
entrypoint: /worker-entrypoint.sh
@@ -38,11 +38,13 @@ services:
interval: 60s
timeout: 5s
retries: 1
{% include 'templates/docker-container-depends-on.yml.j2' %}
redis:
{% include 'templates/docker-container-depends-on-database-redis.yml.j2' %}
application:
{% include 'templates/docker-container-networks.yml.j2' %}
{% include 'templates/docker-compose-volumes.yml.j2' %}
redis:
application_data:
bootstrap:
data:
bootstrap:
{% include 'templates/docker-compose-networks.yml.j2' %}