Update docker-compose.yml
This commit is contained in:
parent
37a1f363f8
commit
daeae200e7
@ -1,30 +1,38 @@
|
|||||||
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
bot:
|
bot:
|
||||||
build:
|
build: .
|
||||||
context: .
|
container_name: discord-lnbits-bot
|
||||||
env_file:
|
env_file:
|
||||||
- ./data/secrets/runtime.env
|
- ./data/secrets/runtime.env
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
command: python discord_lnbits_bot.py
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
web:
|
web:
|
||||||
build:
|
build: .
|
||||||
context: .
|
container_name: discord-lnbits-web
|
||||||
ports:
|
|
||||||
- "3000:3000"
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./data/secrets/runtime.env
|
- ./data/secrets/runtime.env
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
command: gunicorn -b 0.0.0.0:3000 app:app
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: postgres:15-alpine
|
image: postgres:15-alpine
|
||||||
|
container_name: lnbits_db
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: ${DB_PASS:-changeme} # fallback
|
POSTGRES_PASSWORD: ${DB_PASS}
|
||||||
POSTGRES_DB: lnbitsdb
|
POSTGRES_DB: lnbitsdb
|
||||||
volumes:
|
volumes:
|
||||||
- dbdata:/var/lib/postgresql/data
|
- dbdata:/var/lib/postgresql/data
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dbdata:
|
dbdata:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user