diff --git a/docker-compose.yaml b/docker-compose.yaml index 460d3c1..5785607 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,33 +1,34 @@ services: - # chicoliro-back: - # build: . - # container_name: chicoliro-back - # ports: - # - '3005:3005' - # environment: - # - TZ=America/Sao_Paulo - # volumes: - # - .:/usr/src/api - # - /usr/src/api/node_modules - # restart: unless-stopped - # networks: - # - my_shared_network - # networks: - # my_shared_network: - # external: true - redisLocal: - container_name: 'redis' - image: bitnami/redis:latest - environment: - - REDIS_PASSWORD=NKaw8zKdqC4AE9dT - - REDIS_PORT_NUMBER=6000 - command: /opt/bitnami/scripts/redis/run.sh - restart: unless-stopped + chicoliro-back: + build: . + container_name: chicoliro-back ports: - - '6000:6000' + - '3005:3005' + environment: + - TZ=America/Sao_Paulo volumes: - - redisLocal:/data + - .:/usr/src/api + - /usr/src/api/node_modules + restart: unless-stopped + networks: + - my_shared_network +networks: + my_shared_network: + external: true +# redisLocal: +# container_name: 'redis' +# image: bitnami/redis:latest +# environment: +# - REDIS_PASSWORD=NKaw8zKdqC4AE9dT +# - REDIS_PORT_NUMBER=6000 +# command: /opt/bitnami/scripts/redis/run.sh +# restart: unless-stopped +# ports: +# - '6000:6000' +# volumes: +# - redisLocal:/data + +# volumes: +# redisLocal: +# driver: local -volumes: - redisLocal: - driver: local diff --git a/src/queue/queue.module.ts b/src/queue/queue.module.ts index d749c92..eca17f3 100644 --- a/src/queue/queue.module.ts +++ b/src/queue/queue.module.ts @@ -8,7 +8,7 @@ import { DataModule } from './src/modules/data/data.module'; imports: [ BullModule.forRoot({ redis: { - host: 'localhost', + host: 'redis', port: 6000, password: 'NKaw8zKdqC4AE9dT', },