-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
75 lines (70 loc) · 1.89 KB
/
docker-compose.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: "3"
services:
database:
container_name: tgs-database-dev
image: postgres:alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD:?missing DB_PASSWORD}"
POSTGRES_USER: "${DB_USER:?missing DB_USER}"
POSTGRES_DB: "${DB_DATABASE:?missing DB_DATABASE}"
ports:
- 5432:5432
volumes:
- ./db-data:/var/lib/postgresql/data
adminer:
container_name: tgs-adminer-dev
image: adminer
restart: unless-stopped
ports:
- 8080:8080
bot-api:
container_name: tgs-bot-api-dev
build: https://github.com/billy4479/telegram-bot-api.git
restart: unless-stopped
environment:
TELEGRAM_API_ID: "${TELEGRAM_API_ID:?missing TELEGRAM_API_ID}"
TELEGRAM_API_HASH: "${TELEGRAM_API_HASH:?missing TELEGRAM_API_HASH}"
TELEGRAM_LOCAL: "yes"
TELEGRAM_VERBOSITY: "1"
frontend:
container_name: tgs-frontend-dev
build:
context: .
dockerfile: Dockerfile.frontend.dev
args:
port: "${FRONTEND_PORT:-3000}"
restart: unless-stopped
ports:
- ${FRONTEND_PORT:-3000}:${FRONTEND_PORT:-3000}
environment:
BACKEND_PORT: "${PORT:-4479}"
depends_on:
- backend
volumes:
- ./frontend:/app
backend:
container_name: tgs-backend-dev
build:
context: .
dockerfile: Dockerfile.backend.dev
ports:
- ${PORT:-4479}:${PORT:-4479}
depends_on:
- database
- bot-api
restart: unless-stopped
environment:
DB_PASSWORD: "${DB_PASSWORD:?missing DB_PASSWORD}"
DB_USER: "${DB_USER:?missing DB_USER}"
DB_DATABASE: "${DB_DATABASE:?missing DB_DATABASE}"
DB_HOST: "database"
SECRET: "${SECRET:?missing SECRET}"
PORT: "${PORT:-4479}"
TELEGRAM_TOKEN: "${TELEGRAM_TOKEN:?missing TELEGRAM_TOKEN}"
volumes:
- ./backend:/app/backend
volumes:
backend:
frontend:
db-data: