-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (34 loc) · 1.11 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
services:
bot:
image: ghcr.io/smart7even/smart7even/schedule-bot/bot:latest
restart: always
environment:
- SCHEDULE_BOT_TOKEN=${SCHEDULE_BOT_TOKEN}
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- TZ=Europe/Moscow
server:
image: ghcr.io/smart7even/smart7even/schedule-bot/server:latest
restart: always
ports:
- 8000:8000
environment:
- SCHEDULE_BOT_TOKEN=${SCHEDULE_BOT_TOKEN}
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- TZ=Europe/Moscow
initializer:
image: ghcr.io/smart7even/smart7even/schedule-bot/initializer:latest
environment:
- SCHEDULE_BOT_TOKEN=${SCHEDULE_BOT_TOKEN}
- DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- TZ=Europe/Moscow
db:
image: postgres:15.4
restart: always
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- dbdata:/var/lib/postgresql/data
volumes:
dbdata: