29 lines
746 B
YAML
29 lines
746 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
|
|
database:
|
|
image: postgres:15.1-alpine
|
|
environment:
|
|
POSTGRES_DB: "gitlab_bot"
|
|
POSTGRES_USER: "postgres"
|
|
POSTGRES_PASSWORD: ${DATASOURCE_PASSWORD}
|
|
volumes:
|
|
- database:/var/lib/postgresql/data/
|
|
|
|
gitlab-bot:
|
|
build: .
|
|
depends_on:
|
|
- database
|
|
environment:
|
|
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
|
|
TELEGRAM_BOT_USERNAME: ${TELEGRAM_BOT_USERNAME}
|
|
GITLAB_PERSONAL_TOKEN: ${GITLAB_PERSONAL_TOKEN}
|
|
TELEGRAM_PERSON_ID: ${TELEGRAM_PERSON_ID}
|
|
GITLAB_URL: ${GITLAB_URL}
|
|
DATASOURCE_URL: "jdbc:postgresql://database:5432/gitlab_bot"
|
|
DATASOURCE_USERNAME: "postgres"
|
|
DATASOURCE_PASSWORD: ${DATASOURCE_PASSWORD}
|
|
|
|
volumes:
|
|
database: |