mezzotre/docker-compose.yml

28 lines
749 B
YAML
Raw Normal View History

2023-03-21 18:09:06 +01:00
version: '3.8'
services:
bot:
build:
context: .
args:
- DEBUG_BUILD=${DEBUG_OPTS}
restart: unless-stopped
command:
- db.url=jdbc:postgresql://db:5432/mezzotre
- db.user=mezzotre
- db.password=${DB_PASSWORD}
- telegram.key=${TELEGRAM_KEY}
- application.env=${APPLICATION_MODE}
ports:
- "9191:9191"
volumes:
- ./conf/application.conf:/home/nonroot/application.${APPLICATION_MODE}.conf:ro
- ./conf/logback.${APPLICATION_MODE}.xml:/home/nonroot/logback.${APPLICATION_MODE}.xml:ro
db:
image: postgres:13-alpine
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=mezzotre
- POSTGRES_DB=mezzotre