Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkweyunga authored Aug 25, 2023
1 parent f4cf506 commit 48c609d
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions directus-install-with-path/templates/docker-compose.yml.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ version: '3.8'
services:

cache:
container_name: "{{ directus_hostname | replace('.', '_') }}_directus-cache"
hostname: "{{ directus_hostname | replace('.', '_') }}_directus-cache"
container_name: "{{ directus_domain | replace('.', '_') }}_directus-cache"
hostname: "{{ directus_domain | replace('.', '_') }}_directus-cache"
restart: unless-stopped
image: redis:6

directus:
container_name: {{ directus_hostname }}
hostname: {{ directus_hostname }}
container_name: {{ directus_domain }}
hostname: {{ directus_domain }}
restart: unless-stopped
image: directus/directus:10
expose:
Expand All @@ -32,7 +32,10 @@ services:

CACHE_ENABLED: 'true'
CACHE_STORE: 'redis'
REDIS: "redis://{{ directus_hostname | replace('.', '_') }}_directus-cache:6379"
REDIS: "redis://{{ directus_domain | replace('.', '_') }}_directus-cache:6379"
RATE_LIMITER_STORE="redis"
SYNCHRONIZATION_STORE="redis"
MESSENGER_STORE="redis"

ADMIN_EMAIL: {{ directus_admin_email }}
ADMIN_PASSWORD: {{ directus_admin_password }}
Expand All @@ -59,6 +62,6 @@ services:
#
networks:
default:
external:
name: {{ docker_network }}
name: {{ docker_network }}
external: true

0 comments on commit 48c609d

Please sign in to comment.