blob: 1f5d01527f8935581d792de5c5005a7971e1d21c [file]
version: '3'
services:
lnt:
build:
context: .
container_name: lnt
image: lnt
environment:
- DB_ENGINE=postgres
- DB_HOST=lnt-postgres
- DB_PWD
- LNT_AUTH_TOKEN
depends_on:
- db
deploy:
restart_policy:
condition: on-failure
ports:
- "8000:8000"
db:
container_name: lnt-postgres
image: docker.io/postgres:13-alpine
environment:
- POSTGRES_PASSWORD=${DB_PWD}
- POSTGRES_USER=${DB_USER:-lntuser}
- POSTGRES_DB=${DB_BASE:-lnt}