Skip to content

Commit 455d916

Browse files
committed
fix: solve redis issue into coolify
1 parent 37576f8 commit 455d916

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

docker-compose.production.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ services:
66
restart: unless-stopped
77
networks:
88
- coolify
9+
extra_hosts:
10+
- "redis-database-tgkw0gwc0w448wc404s40044:10.0.1.7"
911
environment:
1012
RAILS_ENV: production
1113
DATABASE_URL: ${DATABASE_URL}
12-
REDIS_URL: ${REDIS_URL}
14+
# Sobrescreve o REDIS_URL com o hostname correto do Coolify
15+
REDIS_URL: redis://default:${REDIS_PASSWORD:-}@redis-database-tgkw0gwc0w448wc404s40044:6379/0
1316
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
1417
RAILS_LOG_TO_STDOUT: "true"
1518
PORT: 3000
@@ -35,10 +38,13 @@ services:
3538
restart: unless-stopped
3639
networks:
3740
- coolify
41+
extra_hosts:
42+
- "redis-database-tgkw0gwc0w448wc404s40044:10.0.1.7"
3843
environment:
3944
RAILS_ENV: production
4045
DATABASE_URL: ${DATABASE_URL}
41-
REDIS_URL: ${REDIS_URL}
46+
# Sobrescreve o REDIS_URL com o hostname correto do Coolify
47+
REDIS_URL: redis://default:${REDIS_PASSWORD:-}@redis-database-tgkw0gwc0w448wc404s40044:6379/0
4248
ELASTICSEARCH_URL: ${ELASTICSEARCH_URL:-http://elastic:9200}
4349
RAILS_MASTER_KEY: ${RAILS_MASTER_KEY}
4450
RIOT_API_KEY: ${RIOT_API_KEY}

0 commit comments

Comments
 (0)