-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.2 KB
/
docker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.2 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
53
54
55
56
57
services:
bot:
build: .
restart: always
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- db:/var/lib/postgres/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 2s
timeout: 2s
retries: 5
# pgbackups:
# image: prodrigestivill/postgres-backup-local
# restart: always
# user: postgres:postgres
# volumes:
# - /var/opt/pgbackups:/backups
# depends_on:
# - postgres
# links:
# - postgres
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# - POSTGRES_HOST=postgres
# - SCHEDULE=@daily
# - BACKUP_KEEP_DAYS=7
# - BACKUP_KEEP_WEEKS=4
# - BACKUP_KEEP_MONTHS=6
# - HEALTHCHECK_PORT=3928
# pg_admin:
# image: dpage/pgadmin4
# environment:
# - PGADMIN_DEFAULT_EMAIL=admin@email.com
# - PGADMIN_DEFAULT_PASSWORD=admin
# - PGADMIN_LISTEN_PORT=5050
# ports:
# - "5050:5050"
volumes:
db: