-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1.13 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
version: '3.5'
services:
### PostgreSQL ################################################
postgres:
image: postgres:14-alpine
restart: always
environment:
- POSTGRES_USER=strategy_user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=strategy_db
volumes:
- ./postgres-data:/var/lib/postgresql/data
container_name: postgres
ports:
- "5432:5432"
### Redis ################################################
redis:
image: redis:6-alpine
container_name: redis
command: redis-server --save "" --appendonly no
pgadmin:
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected] # Set the pgAdmin default admin email
PGADMIN_DEFAULT_PASSWORD: admin_password # Set the pgAdmin default admin password
ports:
- "8080:80" # Expose pgAdmin on port 8080
depends_on:
- postgres # Ensure PostgreSQL starts before pgAdmin
container_name: pgadmin
grafana:
image: grafana/grafana
restart: always
ports:
- "3000:3000"
volumes:
postgres-data: