Настроено подключение к общему 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:
|
services:
|
||||||
postgres:
|
# postgres:
|
||||||
image: postgres:15-alpine
|
# image: postgres:15-alpine
|
||||||
container_name: karta-soup-db
|
# container_name: karta-soup-db
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
environment:
|
# environment:
|
||||||
POSTGRES_USER: postgres
|
# POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: postgres
|
# POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: karta_soup
|
# POSTGRES_DB: karta_soup
|
||||||
volumes:
|
# volumes:
|
||||||
- postgres_data:/var/lib/postgresql/data
|
# - postgres_data:/var/lib/postgresql/data
|
||||||
networks:
|
# networks:
|
||||||
- karta-soup-network
|
# - karta-soup-network
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
@ -21,17 +21,14 @@ services:
|
|||||||
container_name: karta-soup-bot
|
container_name: karta-soup-bot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
|
TELEGRAM_BOT_TOKEN: 7664650831:AAGdpc0MRIeSCrCFq6tx3K4J5_uqAHsetSQ
|
||||||
DATABASE_HOST: postgres
|
DATABASE_HOST: postgres-postgres-1
|
||||||
DATABASE_PORT: 5432
|
DATABASE_PORT: 5432
|
||||||
DATABASE_USER: postgres
|
DATABASE_USER: karta_soup_user
|
||||||
DATABASE_PASSWORD: postgres
|
DATABASE_PASSWORD: 123Kartasoup123
|
||||||
DATABASE_NAME: karta_soup
|
DATABASE_NAME: karta_soup
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
depends_on:
|
network_mode: host
|
||||||
- postgres
|
|
||||||
networks:
|
|
||||||
- karta-soup-network
|
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user