forked from linux/WebHosting_DMZ
Use DMZ write mount for CLIC data
This commit is contained in:
+12
-12
@@ -151,7 +151,7 @@ services:
|
||||
container_name: clic-web
|
||||
restart: always
|
||||
env_file:
|
||||
- /opt/webcontent/clic/clic.env
|
||||
- /mount/webhosting_dmz_write/clic/clic.env
|
||||
environment:
|
||||
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
- POSTGRES_HOST=clic-db
|
||||
@@ -160,8 +160,8 @@ services:
|
||||
- CLIC_REDIS_URL=redis://clic-redis:6379/0
|
||||
- CLIC_REQUIRE_SHARED_CACHE=1
|
||||
volumes:
|
||||
- /opt/webcontent/clic/media:/app/media
|
||||
- /opt/webcontent/clic/impact_factors:/app/data/impact_factors:ro
|
||||
- /mount/webhosting_dmz_write/clic/media:/app/media
|
||||
- /mount/webhosting_dmz_write/clic/impact_factors:/app/data/impact_factors:ro
|
||||
depends_on:
|
||||
clic-db:
|
||||
condition: service_healthy
|
||||
@@ -182,7 +182,7 @@ services:
|
||||
container_name: clic-package-exports
|
||||
restart: always
|
||||
env_file:
|
||||
- /opt/webcontent/clic/clic.env
|
||||
- /mount/webhosting_dmz_write/clic/clic.env
|
||||
environment:
|
||||
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
- POSTGRES_HOST=clic-db
|
||||
@@ -191,8 +191,8 @@ services:
|
||||
- CLIC_REDIS_URL=redis://clic-redis:6379/0
|
||||
- CLIC_REQUIRE_SHARED_CACHE=1
|
||||
volumes:
|
||||
- /opt/webcontent/clic/media:/app/media
|
||||
- /opt/webcontent/clic/impact_factors:/app/data/impact_factors:ro
|
||||
- /mount/webhosting_dmz_write/clic/media:/app/media
|
||||
- /mount/webhosting_dmz_write/clic/impact_factors:/app/data/impact_factors:ro
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command: exec python manage.py process_package_exports
|
||||
depends_on:
|
||||
@@ -208,7 +208,7 @@ services:
|
||||
container_name: clic-brightway-json-exports
|
||||
restart: always
|
||||
env_file:
|
||||
- /opt/webcontent/clic/clic.env
|
||||
- /mount/webhosting_dmz_write/clic/clic.env
|
||||
environment:
|
||||
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
- POSTGRES_HOST=clic-db
|
||||
@@ -217,8 +217,8 @@ services:
|
||||
- CLIC_REDIS_URL=redis://clic-redis:6379/0
|
||||
- CLIC_REQUIRE_SHARED_CACHE=1
|
||||
volumes:
|
||||
- /opt/webcontent/clic/media:/app/media
|
||||
- /opt/webcontent/clic/impact_factors:/app/data/impact_factors:ro
|
||||
- /mount/webhosting_dmz_write/clic/media:/app/media
|
||||
- /mount/webhosting_dmz_write/clic/impact_factors:/app/data/impact_factors:ro
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
command: exec python manage.py process_brightway_json_exports --skip-checks --sleep "${CLIC_API_EXPORT_POLL_SECONDS:-2}"
|
||||
depends_on:
|
||||
@@ -234,9 +234,9 @@ services:
|
||||
container_name: clic-db
|
||||
restart: always
|
||||
env_file:
|
||||
- /opt/webcontent/clic/clic.env
|
||||
- /mount/webhosting_dmz_write/clic/clic.env
|
||||
volumes:
|
||||
- /opt/webcontent/clic/postgres:/var/lib/postgresql/data
|
||||
- /mount/webhosting_dmz_write/clic/postgres:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
||||
interval: 10s
|
||||
@@ -251,7 +251,7 @@ services:
|
||||
restart: always
|
||||
command: ["redis-server", "--appendonly", "yes"]
|
||||
volumes:
|
||||
- /opt/webcontent/clic/redis:/data
|
||||
- /mount/webhosting_dmz_write/clic/redis:/data
|
||||
networks:
|
||||
- clic_backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user