Настроено подключение к общему postgres
All checks were successful
Deploy Production / deploy (push) Successful in 23s
All checks were successful
Deploy Production / deploy (push) Successful in 23s
This commit is contained in:
parent
2cfb879c0c
commit
deb2a1a97e
@ -1,18 +1,18 @@
|
||||
version: '3.8'
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: karta-soup-db
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: karta_soup
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
networks:
|
||||
- karta-soup-network
|
||||
# postgres:
|
||||
# image: postgres:15-alpine
|
||||
# container_name: karta-soup-db
|
||||
# restart: unless-stopped
|
||||
# environment:
|
||||
# POSTGRES_USER: postgres
|
||||
# POSTGRES_PASSWORD: postgres
|
||||
# POSTGRES_DB: karta_soup
|
||||
# volumes:
|
||||
# - postgres_data:/var/lib/postgresql/data
|
||||
# networks:
|
||||
# - karta-soup-network
|
||||
|
||||
app:
|
||||
build:
|
||||
@ -21,17 +21,14 @@ services:
|
||||
container_name: karta-soup-bot
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
|
||||
DATABASE_HOST: postgres
|
||||
TELEGRAM_BOT_TOKEN: 7664650831:AAGdpc0MRIeSCrCFq6tx3K4J5_uqAHsetSQ
|
||||
DATABASE_HOST: postgres-postgres-1
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_USER: postgres
|
||||
DATABASE_PASSWORD: postgres
|
||||
DATABASE_USER: karta_soup_user
|
||||
DATABASE_PASSWORD: 123Kartasoup123
|
||||
DATABASE_NAME: karta_soup
|
||||
NODE_ENV: production
|
||||
depends_on:
|
||||
- postgres
|
||||
networks:
|
||||
- karta-soup-network
|
||||
network_mode: host
|
||||
ports:
|
||||
- "3000:3000"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user