-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.04 KB
/
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
52
53
54
55
version: "3.3"
services:
bot:
build: .
container_name: advance_report_bot
image: advance_report_bot
restart: always
environment:
- TZ=Europe/Moscow
env_file:
- ./source/.env
depends_on:
- redis
- postgresql
profiles: [rebuild]
networks:
- advance_report_network
redis:
image: redis:alpine
container_name: advance_report_cache
restart: always
ports:
- 1000:6379
env_file:
- ./.env
command: redis-server --requirepass ${REDIS_PASSWORD}
networks:
- advance_report_network
volumes:
- cache:/data
postgresql:
image: postgres:alpine
container_name: advance_report_db
restart: always
env_file:
- ./.env
ports:
- 2000:5432
environment:
POSTGRES_USER: ${PG_USERNAME}
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_DB: ${PG_DB}
networks:
- advance_report_network
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data:
cache:
networks:
advance_report_network: