Update volume names in docker-compose.yml and docker-compose_mounted_volumes.yml

This commit is contained in:
Eugene Burmakin 2024-11-30 12:16:41 +01:00
parent 2e1d3bf197
commit d3c80e2b18
2 changed files with 23 additions and 22 deletions

View file

@ -38,7 +38,7 @@ services:
image: freikin/dawarich:latest image: freikin/dawarich:latest
container_name: dawarich_app container_name: dawarich_app
volumes: volumes:
- gem_cache:/usr/local/bundle/gems_app - gem_cache_app:/usr/local/bundle/gems_app
- public:/var/app/public - public:/var/app/public
- watched:/var/app/tmp/imports/watched - watched:/var/app/tmp/imports/watched
networks: networks:
@ -96,7 +96,7 @@ services:
image: freikin/dawarich:latest image: freikin/dawarich:latest
container_name: dawarich_sidekiq container_name: dawarich_sidekiq
volumes: volumes:
- gem_cache:/usr/local/bundle/gems_sidekiq - gem_cache_sidekiq:/usr/local/bundle/gems_sidekiq
- public:/var/app/public - public:/var/app/public
- watched:/var/app/tmp/imports/watched - watched:/var/app/tmp/imports/watched
networks: networks:
@ -152,7 +152,8 @@ services:
volumes: volumes:
db_data: db_data:
gem_cache: gem_cache_app:
gem_cache_sidekiq:
shared_data: shared_data:
public: public:
watched: watched:

View file

@ -3,22 +3,22 @@ networks:
volumes: volumes:
dawarich-app-cache: dawarich_gem_cache_app:
name: dawarich-app-cache name: dawarich_gem_cache_app
dawarich-sidekiq-cache: dawarich_gem_cache_sidekiq:
name: dawarich-sidekiq-cache name: dawarich_gem_cache_sidekiq
dawarich-public: dawarich_public:
name: dawarich-public name: dawarich_public
dawarich-keydb: dawarich_keydb:
name: dawarich-keydb name: dawarich_keydb
dawarich-shared: dawarich_shared:
name: dawarich-shared name: dawarich_shared
watched: watched:
name: dawarich-watched name: dawarich_watched
services: services:
app: app:
container_name: dawarich container_name: dawarich_app
image: freikin/dawarich:latest image: freikin/dawarich:latest
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
@ -52,8 +52,8 @@ services:
entrypoint: dev-entrypoint.sh entrypoint: dev-entrypoint.sh
command: [ 'bin/dev' ] command: [ 'bin/dev' ]
volumes: volumes:
- dawarich-app-cache:/usr/local/bundle/gems - dawarich_gem_cache_app:/usr/local/bundle/gems
- dawarich-public:/var/app/dawarich_public - dawarich_public:/var/app/dawarich_public
- watched:/var/app/tmp/imports/watched - watched:/var/app/tmp/imports/watched
healthcheck: healthcheck:
test: [ "CMD-SHELL", "wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '\"status\"\\s*:\\s*\"ok\"'" ] test: [ "CMD-SHELL", "wget -qO - http://127.0.0.1:3000/api/v1/health | grep -q '\"status\"\\s*:\\s*\"ok\"'" ]
@ -108,8 +108,8 @@ services:
entrypoint: dev-entrypoint.sh entrypoint: dev-entrypoint.sh
command: [ 'sidekiq' ] command: [ 'sidekiq' ]
volumes: volumes:
- dawarich-sidekiq-cache:/usr/local/bundle/gems - dawarich_gem_cache_sidekiq:/usr/local/bundle/gems
- dawarich-public:/var/app/dawarich_public - dawarich_public:/var/app/dawarich_public
- watched:/var/app/tmp/imports/watched - watched:/var/app/tmp/imports/watched
logging: logging:
driver: "json-file" driver: "json-file"
@ -140,8 +140,8 @@ services:
- PGID=1000 - PGID=1000
command: keydb-server /etc/keydb/keydb.conf --appendonly yes --server-threads 4 --active-replica no command: keydb-server /etc/keydb/keydb.conf --appendonly yes --server-threads 4 --active-replica no
volumes: volumes:
- dawarich-keydb:/data - dawarich_keydb:/data
- dawarich-shared:/var/shared/redis - dawarich_shared:/var/shared/redis
healthcheck: healthcheck:
test: [ "CMD", "keydb-cli", "ping" ] test: [ "CMD", "keydb-cli", "ping" ]
start_period: 60s start_period: 60s
@ -162,7 +162,7 @@ services:
POSTGRES_DATABASE: dawarich POSTGRES_DATABASE: dawarich
volumes: volumes:
- ./db:/var/lib/postgresql/data - ./db:/var/lib/postgresql/data
- dawarich-shared:/var/shared - dawarich_shared:/var/shared
healthcheck: healthcheck:
test: [ "CMD-SHELL", "pg_isready -q -d $${POSTGRES_DATABASE} -U $${POSTGRES_USER} -h localhost" ] test: [ "CMD-SHELL", "pg_isready -q -d $${POSTGRES_DATABASE} -U $${POSTGRES_USER} -h localhost" ]
start_period: 60s start_period: 60s