redis cmd
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2022-01-11 09:25:31 +01:00
parent 51dd7d1451
commit a0cb796cec
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
3 changed files with 7 additions and 3 deletions

View File

@ -101,7 +101,7 @@ steps:
- echo $username - echo $username
- docker login -u $username -p $password https://registry.xrg.io - docker login -u $username -p $password https://registry.xrg.io
- docker-compose -f docker/docker-compose.prod.yml stop - docker-compose -f docker/docker-compose.prod.yml stop
- docker-compose -f docker/docker-compose.prod.yml rm -f #- docker-compose -f docker/docker-compose.prod.yml rm -f
- docker-compose -f docker/docker-compose.prod.yml pull - docker-compose -f docker/docker-compose.prod.yml pull
- docker-compose -f docker/docker-compose.prod.yml up -d - docker-compose -f docker/docker-compose.prod.yml up -d
volumes: volumes:

View File

@ -1,3 +1,5 @@
FROM redis:latest FROM redis:latest
COPY docker/redis.conf /usr/local/etc/redis/redis.conf COPY docker/redis.conf /usr/local/etc/redis/redis.conf
CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]

View File

@ -17,9 +17,11 @@ services:
image: registry.xrg.io/xrges/redis:latest image: registry.xrg.io/xrges/redis:latest
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./redis:/data - redis_data:/data
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
networks: networks:
default: default:
name: xrges-network name: xrges-network
volumes:
redis_data: