-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.prod.yml
38 lines (36 loc) · 1.1 KB
/
docker-compose.prod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: "3"
services:
db:
container_name: tgs-db
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD:?missing DB_PASSWORD}"
POSTGRES_USER: "${DB_USER:?missing DB_USER}"
POSTGRES_DB: "${DB_DATABASE:?missing DB_DATABASE}"
bot-api:
container_name: tgs-bot-api
build: https://github.com/billy4479/telegram-bot-api.git
environment:
TELEGRAM_API_ID: "${TELEGRAM_API_ID:?missing TELEGRAM_API_ID}"
TELEGRAM_API_HASH: "${TELEGRAM_API_HASH:?missing TELEGRAM_API_HASH}"
TELEGRAM_LOCAL: "yes"
web:
container_name: tgs-web
build:
context: .
dockerfile: Dockerfile.prod
restart: always
depends_on:
- db
- bot-api
environment:
DB_PASSWORD: "${DB_PASSWORD:?missing DB_PASSWORD}"
DB_USER: "${DB_USER:?missing DB_USER}"
DB_DATABASE: "${DB_DATABASE:?missing DB_DATABASE}"
DB_HOST: "db"
SECRET: "${SECRET:?missing SECRET}"
PORT: "${PORT:-4479}"
TELEGRAM_TOKEN: "${TELEGRAM_TOKEN:?missing TELEGRAM_TOKEN}"
ports:
- ${PORT:-4479}:${PORT:-4479}