Files
play-life/docker-compose.yml
poignatov 7398918bc0
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
Release v1.1.0: Add Telegram and Todoist integrations UI
- Add telegram_integrations table to store bot token and chat_id
- Add Integrations tab with Todoist and Telegram integration screens
- Remove TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID from env variables
- All Telegram configuration now done through UI
- Telegram webhook registration happens when user saves bot token
- Rename TELEGRAM_WEBHOOK_BASE_URL to WEBHOOK_BASE_URL
2025-12-31 19:11:28 +03:00

65 lines
1.4 KiB
YAML

version: '3.8'
# Единый docker-compose для всех приложений в одном образе
# Использует корневой .env файл
services:
# База данных PostgreSQL
db:
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER:-playeng}
POSTGRES_PASSWORD: ${DB_PASSWORD:-playeng}
POSTGRES_DB: ${DB_NAME:-playeng}
ports:
- "${DB_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-playeng}"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env
# Backend сервер (Go)
backend:
build:
context: .
dockerfile: ./play-life-backend/Dockerfile
ports:
- "${PORT:-8080}:8080"
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: ${DB_USER:-playeng}
DB_PASSWORD: ${DB_PASSWORD:-playeng}
DB_NAME: ${DB_NAME:-playeng}
PORT: ${PORT:-8080}
depends_on:
db:
condition: service_healthy
volumes:
- ./play-life-backend/migrations:/migrations
env_file:
- .env
# Frontend приложение play-life-web
play-life-web:
build:
context: ./play-life-web
dockerfile: Dockerfile
container_name: play-life-web
ports:
- "${WEB_PORT:-3001}:80"
restart: unless-stopped
depends_on:
- backend
env_file:
- .env
networks:
default:
name: play-life-network