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
- 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 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 up -d
volumes:

View File

@ -1,3 +1,5 @@
FROM redis:latest
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
restart: unless-stopped
volumes:
- ./redis:/data
command: [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
- redis_data:/data
networks:
default:
name: xrges-network
volumes:
redis_data: