2021-10-23 20:33:33 +03:00
|
|
|
|
# Конфигурация, удобная для разработки в PyCharm: бот запускается без docker, порты postgres и redis открыты на localhost
|
|
|
|
|
# Не используйте её в production!
|
2021-06-11 21:56:03 +03:00
|
|
|
|
version: '3'
|
|
|
|
|
services:
|
|
|
|
|
postgres:
|
|
|
|
|
image: kartoza/postgis
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_USER=test_user
|
|
|
|
|
- POSTGRES_PASSWORD=test_passwd
|
|
|
|
|
- POSTGRES_DB=olgram
|
|
|
|
|
ports:
|
2021-09-06 00:36:03 +03:00
|
|
|
|
- '5400:5432'
|
2021-06-11 21:56:03 +03:00
|
|
|
|
volumes:
|
|
|
|
|
- database:/var/lib/postgresql/data
|
2021-06-29 15:29:41 +03:00
|
|
|
|
redis:
|
|
|
|
|
image: 'bitnami/redis:latest'
|
|
|
|
|
environment:
|
|
|
|
|
- ALLOW_EMPTY_PASSWORD=yes
|
|
|
|
|
volumes:
|
|
|
|
|
- redis-db:/bitnami/redis/data
|
|
|
|
|
ports:
|
|
|
|
|
- '6370:6379'
|
2021-06-11 21:56:03 +03:00
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
database:
|
2021-06-29 15:29:41 +03:00
|
|
|
|
redis-db:
|