-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.08 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
version: "3.5"
services:
postgres:
image: postgres:16-alpine
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres:/var/lib/postgresql/data
- ./psql_history:/root/.psql_history
- ./.psqlrc:/root/.psqlrc:ro
healthcheck:
test: pg_isready -U postgres -h 127.0.0.1
interval: 5s
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "5050:80"
healthcheck:
test: wget -O - http://localhost:80/misc/ping
depends_on:
- postgres
redis:
image: redis:6.2-alpine
ports:
- '6379:6379'
environment:
ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
- redis:/data
healthcheck:
test: redis-cli ping
interval: 1s
timeout: 3s
retries: 30
volumes:
postgres:
pgadmin:
redis: