-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (51 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
52 lines (51 loc) · 1.54 KB
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
services:
app:
build: .
restart: on-failure
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
environment:
TELEGRAM_BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
DB_NAME: ${DB_NAME:-database}
DB_USER: ${DB_USER:-webshining}
DB_PASS: ${DB_PASS:-admin}
DB_HOST: ${DB_HOST:-db}
DB_PORT: ${DB_PORT:-5432}
RD_DB: ${RD_DB:-5}
RD_HOST: ${RD_HOST:-redis}
RD_PORT: ${RD_PORT:-6379}
RD_PASS: ${RD_PASS:-admin}
RD_USER: ${RD_USER:-admin}
entrypoint:
- ./bin/entrypoint.sh
volumes:
- ./logs:/app/logs
db:
image: postgres:alpine
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME:-database}
POSTGRES_USER: ${DB_USER:-admin}
POSTGRES_PASSWORD: ${DB_PASS:-admin}
volumes:
- postgres_data:/var/lib/postgresql/data/
redis:
image: redis/redis-stack
restart: unless-stopped
environment:
REDIS_ARGS: "--requirepass ${REDIS_PASS:-admin} --user ${REDIS_USER} on >${REDIS_PASS:-admin} ~* &* +@all --user default off"
ports:
- "6379:6379"
volumes:
- redis:/data
volumes:
postgres_data:
redis: