Skip to content

Commit

Permalink
Refact production deployment with new redis server
Browse files Browse the repository at this point in the history
  • Loading branch information
Triple-Z committed Aug 11, 2019
1 parent add3554 commit 2a52dcc
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions deployments/prod-safeu/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ services:
- "8080:8080"
networks:
- safeu-app-net
depends_on:
- safeu-redis
# depends_on:
# - safeu-redis
restart: on-failure

safeu2:
Expand All @@ -47,8 +47,8 @@ services:
- "8081:8080"
networks:
- safeu-app-net
depends_on:
- safeu-redis
# depends_on:
# - safeu-redis
restart: on-failure

safeu3:
Expand All @@ -64,8 +64,8 @@ services:
- "8082:8080"
networks:
- safeu-app-net
depends_on:
- safeu-redis
# depends_on:
# - safeu-redis
restart: on-failure

# db:
Expand All @@ -82,19 +82,19 @@ services:
# networks:
# - dbnet
# restart: on-failure
safeu-redis:
image: redis:5.0.3-alpine
environment:
- TZ=Asia/Shanghai
volumes:
- ../../conf/redis/redis.conf:/usr/local/etc/redis/redis.conf
- ../../data/redis:/data # for redis persistent storage
entrypoint: redis-server /usr/local/etc/redis/redis.conf
ports:
- "6379:6379"
networks:
- safeu-app-net
restart: on-failure
# safeu-redis:
# image: redis:5.0.3-alpine
# environment:
# - TZ=Asia/Shanghai
# volumes:
# - ../../conf/redis/redis.conf:/usr/local/etc/redis/redis.conf
# - ../../data/redis:/data # for redis persistent storage
# entrypoint: redis-server /usr/local/etc/redis/redis.conf
# ports:
# - "6379:6379"
# networks:
# - safeu-app-net
# restart: on-failure

networks:
safeu-app-net:

0 comments on commit 2a52dcc

Please sign in to comment.