discord-lnbits-bot/docker-compose.yml

41 lines
784 B
YAML
Raw Normal View History

2025-05-14 16:12:15 +00:00
version: "3.8"
2025-05-11 00:01:04 +00:00
services:
bot:
2025-05-14 16:12:15 +00:00
build: .
container_name: discord-lnbits-bot
2025-05-11 00:01:04 +00:00
env_file:
2025-05-14 16:26:51 +00:00
- .env
2025-05-11 00:01:04 +00:00
depends_on:
2025-05-14 16:26:51 +00:00
db:
condition: service_healthy
2025-05-14 16:12:15 +00:00
restart: unless-stopped
2025-05-14 15:10:17 +00:00
web:
2025-05-14 16:12:15 +00:00
build: .
container_name: discord-lnbits-web
2025-05-14 15:10:17 +00:00
env_file:
2025-05-14 16:26:51 +00:00
- .env
depends_on:
db:
condition: service_healthy
2025-05-14 16:12:15 +00:00
ports:
- "3000:3000"
command: gunicorn -b 0.0.0.0:3000 app:app
restart: unless-stopped
2025-05-11 00:01:04 +00:00
db:
image: postgres:15-alpine
2025-05-14 16:12:15 +00:00
container_name: lnbits_db
2025-05-14 16:26:51 +00:00
env_file:
- .env
2025-05-11 00:01:04 +00:00
volumes:
2025-05-14 16:26:51 +00:00
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER} -d ${DB_NAME}"]
interval: 10s
retries: 5
2025-05-14 16:12:15 +00:00
restart: unless-stopped
2025-05-11 00:01:04 +00:00
volumes:
2025-05-14 16:26:51 +00:00
postgres_data: