-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
55 lines (50 loc) · 1.19 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
55 lines (50 loc) · 1.19 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
version: "3.8"
services:
# PostgreSQL Database for Development
db:
image: postgres:16-alpine
container_name: ethical-hacking-db-dev
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ethical_hacking_lab
volumes:
- postgres_data_dev:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d ethical_hacking_lab"]
interval: 10s
timeout: 5s
retries: 5
networks:
- app-network-dev
# Redis Cache for Development
redis:
image: redis:7-alpine
container_name: ethical-hacking-redis-dev
restart: unless-stopped
ports:
- "6379:6379"
networks:
- app-network-dev
# PgAdmin for Database Management (optional)
pgadmin:
image: dpage/pgadmin4:latest
container_name: ethical-hacking-pgadmin
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5050:80"
depends_on:
- db
networks:
- app-network-dev
volumes:
postgres_data_dev:
networks:
app-network-dev:
driver: bridge