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