39 lines
751 B
YAML
39 lines
751 B
YAML
version: "3.8"
|
|
|
|
services:
|
|
bot:
|
|
build: .
|
|
container_name: discord-lnbits-bot
|
|
env_file:
|
|
- ./data/secrets/runtime.env
|
|
depends_on:
|
|
- db
|
|
command: python discord_lnbits_bot.py
|
|
restart: unless-stopped
|
|
|
|
web:
|
|
build: .
|
|
container_name: discord-lnbits-web
|
|
env_file:
|
|
- ./data/secrets/runtime.env
|
|
ports:
|
|
- "3000:3000"
|
|
depends_on:
|
|
- db
|
|
command: gunicorn -b 0.0.0.0:3000 app:app
|
|
restart: unless-stopped
|
|
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: lnbits_db
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: ${DB_PASS}
|
|
POSTGRES_DB: lnbitsdb
|
|
volumes:
|
|
- dbdata:/var/lib/postgresql/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
dbdata:
|