2021-10-23 20:33:33 +03:00
|
|
|
# Минимальная конфигурация сервера, код собирается из текущей директории
|
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
postgres:
|
2022-01-18 03:21:28 +03:00
|
|
|
image: postgres:13.4
|
2021-10-23 20:33:33 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
|
|
image: 'bitnami/redis:latest'
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
|
|
volumes:
|
|
|
|
- redis-db:/bitnami/redis/data
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
olgram:
|
|
|
|
build: .
|
|
|
|
restart: unless-stopped
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes:
|
|
|
|
- olgram-cert:/cert
|
|
|
|
ports:
|
|
|
|
- "${WEBHOOK_PORT}:80"
|
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
database:
|
|
|
|
redis-db:
|
|
|
|
olgram-cert:
|