Skip to content

Commit c23e725

Browse files
authored
ci: add redis service to staging env (#426)
1 parent 8ad3b64 commit c23e725

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docker-compose-staging.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
depends_on:
2424
nixopus-staging-db:
2525
condition: service_healthy
26+
nixopus-staging-redis:
27+
condition: service_healthy
2628

2729
nixopus-staging-db:
2830
image: postgres:14-alpine
@@ -86,6 +88,23 @@ services:
8688
networks:
8789
- nixopus-network
8890

91+
nixopus-staging-redis:
92+
image: redis:7-alpine
93+
container_name: nixopus-staging-redis
94+
restart: unless-stopped
95+
ports:
96+
- "${REDIS_PORT:-6379}:6379"
97+
volumes:
98+
- ${NIXOPUS_HOME:-/etc/nixopus}/redis:/data
99+
command: redis-server --appendonly yes
100+
networks:
101+
- nixopus-network
102+
healthcheck:
103+
test: ["CMD", "redis-cli", "ping"]
104+
interval: 5s
105+
timeout: 5s
106+
retries: 5
107+
89108
networks:
90109
nixopus-network:
91110
driver: bridge

0 commit comments

Comments
 (0)