forked from donBarbos/telegram-bot-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 922 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: "3"
services:
postgres:
container_name: postgres-bot
image: postgres:12-alpine
restart: always
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${PG_PASSWORD}
- POSTGRES_USER=${PG_USER}
- POSTGRES_DB=${PG_NAME}
- PGDATA=${PG_DATA}
ports:
- ${PG_PORT}:${PG_PORT}
expose:
- ${PG_PORT}
volumes:
- /usr/src/app/data:/var/lib/postgresql/data/pgdata
redis:
container_name: redis-bot
image: redis:5-alpine
restart: always
env_file:
- .env
ports:
- ${REDIS_PORT}:${REDIS_PORT}
expose:
- ${REDIS_PORT}
volumes:
- /usr/src/app/data:/bitnami/redis/data
bot:
container_name: telegram-bot
build: .
restart: always
env_file:
- .env
links:
- postgres
- redis
depends_on:
- postgres
- redis
volumes:
postgres-data:
redis-data: