zapishis-client/docker-compose.yml
vchikalkin aa8521fec7
Some checks failed
Build & Deploy Web & Bot / Build and Push to Docker Hub (push) Has been cancelled
Build & Deploy Web & Bot / Deploy to VPS (push) Has been cancelled
add docker-compose and CI/CD workflow for web and bot services
2025-06-27 23:12:06 +03:00

42 lines
860 B
YAML

version: "3"
services:
web:
container_name: web
build:
context: .
dockerfile: ./apps/web/Dockerfile
restart: always
ports:
- 3000:3000
environment:
BOT_TOKEN: ${BOT_TOKEN}
LOGIN_GRAPHQL: ${LOGIN_GRAPHQL}
PASSWORD_GRAPHQL: ${PASSWORD_GRAPHQL}
URL_GRAPHQL: ${URL_GRAPHQL}
__DEV_TELEGRAM_ID: ${__DEV_TELEGRAM_ID}
NODE_ENV: "production"
networks:
- app
- web
bot:
container_name: bot
build:
context: .
dockerfile: ./apps/bot/Dockerfile
restart: always
environment:
BOT_TOKEN: ${BOT_TOKEN}
LOGIN_GRAPHQL: ${LOGIN_GRAPHQL}
PASSWORD_GRAPHQL: ${PASSWORD_GRAPHQL}
URL_GRAPHQL: ${URL_GRAPHQL}
NODE_ENV: "production"
networks:
- app
- web
networks:
app:
external: true
web:
external: true