File tree Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Expand file tree Collapse file tree 1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change 38
38
- RAILS_MASTER_KEY
39
39
- POSTGRES_PASSWORD
40
40
clear :
41
- # The hostname is constructed as [service_name]-[accessory_name].
42
- DB_HOST : telegram_spam_sniper_bot-postgres
43
- DB_PORT : 5432
41
+ DB_HOST : 172.17.0.1 # Docker's default bridge network gateway (host machine)
42
+ DB_PORT : 5433
44
43
POSTGRES_USER : rails_user
45
44
POSTGRES_DB : telegram_spam_sniper_bot_production
46
45
# Run the Solid Queue Supervisor inside the web server's Puma process to do jobs.
@@ -99,38 +98,19 @@ builder:
99
98
100
99
# Use accessory services (secrets come from .kamal/secrets).
101
100
accessories :
102
- postgres :
103
- image : postgres:15
104
- host : 192.168.1.188
105
- port : " 5432:5432"
106
- env :
107
- clear :
108
- POSTGRES_USER : rails_user
109
- POSTGRES_DB : telegram_spam_sniper_bot_production
110
- secret :
111
- - RAILS_MASTER_KEY
112
- - POSTGRES_PASSWORD
113
- directories :
114
- - data:/var/lib/postgresql/data
115
- files :
116
- - db/production_setup.sql:/docker-entrypoint-initdb.d/setup.sql
117
- volumes :
118
- - " /tmp/migration_data:/rails/db/data"
119
-
120
101
runner :
121
102
host : 192.168.1.188
122
103
image : samrayleung/telegram_spam_sniper_bot
123
104
cmd : sleep infinity # Keeps the container running but idle
124
105
env :
125
106
clear :
126
- DB_HOST : telegram_spam_sniper_bot-postgres
107
+ DB_HOST : 172.17.0.1
108
+ DB_PORT : 5433
127
109
POSTGRES_USER : rails_user
128
110
POSTGRES_DB : telegram_spam_sniper_bot_production
129
111
secret :
130
112
- RAILS_MASTER_KEY
131
113
- POSTGRES_PASSWORD
132
- directories :
133
- - data:/var/lib/postgresql/data
134
114
volumes :
135
115
- " /tmp/migration_data:/rails/db/data"
136
116
You can’t perform that action at this time.
0 commit comments