mirror of
https://github.com/purofle/remake_bot.git
synced 2025-06-18 15:23:30 +08:00
Compare commits
No commits in common. "main" and "v2.0.0" have entirely different histories.
30
compose.yml
30
compose.yml
@ -1,30 +0,0 @@
|
|||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: postgres:17
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: postgres
|
|
||||||
POSTGRES_PASSWORD: 114514
|
|
||||||
POSTGRES_DB: postgres
|
|
||||||
volumes:
|
|
||||||
- postgres_data:/var/lib/postgresql/data
|
|
||||||
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
||||||
healthcheck:
|
|
||||||
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
|
||||||
interval: 10s
|
|
||||||
timeout: 5s
|
|
||||||
retries: 5
|
|
||||||
start_period: 5s
|
|
||||||
|
|
||||||
sbbot:
|
|
||||||
build: .
|
|
||||||
restart: always
|
|
||||||
environment:
|
|
||||||
TOKEN: ${BOT_TOKEN}
|
|
||||||
DATABASE_URL: postgresql://postgres:114514@postgres:5432/postgres?sslmode=disable
|
|
||||||
depends_on:
|
|
||||||
- postgres
|
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
postgres_data:
|
|
Loading…
Reference in New Issue
Block a user