56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
bot:
|
|
build: .
|
|
container_name: telegram-tinder-bot
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DB_HOST={DB_HOST}
|
|
- DB_PORT={DB_PORT}
|
|
- DB_NAME={DB_NAME}
|
|
- DB_USERNAME={DB_USERNAME}
|
|
- DB_PASSWORD={DB_PASSWORD}
|
|
- TELEGRAM_BOT_TOKEN={TELEGRAM_BOT_TOKEN}
|
|
volumes:
|
|
- ./uploads:/app/uploads
|
|
networks:
|
|
- bot-network
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: postgres-tinder
|
|
restart: unless-stopped
|
|
environment:
|
|
- POSTGRES_DB=telegram_tinder_bot
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=password123
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
- ./src/database/migrations/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
ports:
|
|
- "5433:5432"
|
|
networks:
|
|
- bot-network
|
|
|
|
adminer:
|
|
image: adminer:latest
|
|
container_name: adminer-tinder
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:8080"
|
|
depends_on:
|
|
- db
|
|
networks:
|
|
- bot-network
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
bot-network:
|
|
driver: bridge
|