redis cmd
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
51dd7d1451
commit
a0cb796cec
|
@ -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:
|
||||||
|
|
|
@ -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" ]
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue