GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — UnitKeeperBot/docker-compose.yml at main · ilyascw/UnitKeeperBot

Expand file tree

/

docker-compose.yml

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
124 lines (115 loc) · 3.32 KB
/

docker-compose.yml

Copy path

File metadata and controls

124 lines (115 loc) · 3.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: unitkeeper
x-backend-environment: &backend-environment
DATABASE_URL: ${DATABASE_URL:-postgresql+asyncpg://unitkeeper:unitkeeper@db:5432/unitkeeper}
APP_ENV: ${APP_ENV:-production}
SQLALCHEMY_ECHO: ${SQLALCHEMY_ECHO:-false}
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN:-replace-with-bot-token}
TELEGRAM_AUTH_MAX_AGE_SECONDS: ${TELEGRAM_AUTH_MAX_AGE_SECONDS:-86400}
SESSION_SECRET: ${SESSION_SECRET:-replace-with-at-least-32-random-characters}
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-86400}
INTERNAL_BOT_SECRET: ${INTERNAL_BOT_SECRET:-replace-with-another-random-secret}
DEFAULT_TIMEZONE: ${DEFAULT_TIMEZONE:-UTC}
services:
db:
image: postgres:16-alpine
restart: unless-stopped
networks:
- data_network
environment:
POSTGRES_USER: ${POSTGRES_USER:-unitkeeper}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-unitkeeper}
POSTGRES_DB: ${POSTGRES_DB:-unitkeeper}
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test:
- CMD-SHELL
- pg_isready -U "$${POSTGRES_USER}" -d "$${POSTGRES_DB}"
interval: 5s
timeout: 5s
retries: 10
migrate:
build:
context: ./common
dockerfile: Dockerfile.migrate
networks:
- data_network
environment:
DATABASE_URL: ${DATABASE_URL:-postgresql+asyncpg://unitkeeper:unitkeeper@db:5432/unitkeeper}
depends_on:
db:
condition: service_healthy
restart: "no"
backend:
build:
context: .
dockerfile: backend/Dockerfile
networks:
- app_network
- data_network
restart: unless-stopped
environment: *backend-environment
ports:
- "127.0.0.1:8000:8000"
depends_on:
migrate:
condition: service_completed_successfully
healthcheck:
test:
- CMD
- python
- -c
- >-
import urllib.request;
urllib.request.urlopen("http://127.0.0.1:8000/api/v1/health", timeout=2)
interval: 10s
timeout: 3s
retries: 10
scheduler:
build:
context: .
dockerfile: backend/Dockerfile
networks:
- data_network
restart: unless-stopped
command: ["python", "-m", "unitkeeper_backend.entrypoints.scheduler"]
environment: *backend-environment
depends_on:
migrate:
condition: service_completed_successfully
miniapp:
build:
context: ./miniapp
dockerfile: Dockerfile
networks:
- app_network
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
depends_on:
backend:
condition: service_healthy
bot:
profiles: ["telegram"]
build:
context: .
dockerfile: bot/Dockerfile
networks:
- app_network
restart: unless-stopped
environment:
UNITKEEPER_BOT_TOKEN: ${UNITKEEPER_BOT_TOKEN:-replace-with-bot-token}
UNITKEEPER_BACKEND_BASE_URL: http://backend:8000/api/v1
UNITKEEPER_INTERNAL_BOT_SECRET: ${INTERNAL_BOT_SECRET:-replace-with-another-random-secret}
UNITKEEPER_MINIAPP_URL: ${UNITKEEPER_MINIAPP_URL:-https://unitkeeper.example.com}
UNITKEEPER_REQUEST_TIMEOUT_SECONDS: ${UNITKEEPER_REQUEST_TIMEOUT_SECONDS:-10}
UNITKEEPER_TGPROXY: ${TGPROXY:-}
depends_on:
backend:
condition: service_healthy
volumes:
postgres_data:
networks:
app_network:
data_network:
internal: true
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.