forked from F1R3FLY-io/system-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
83 lines (75 loc) · 1.74 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
83 lines (75 loc) · 1.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: '3.8'
services:
service-1:
build:
context: ./services/service-1
dockerfile: Dockerfile.dev
target: development
environment:
- ENV=development
- LOG_LEVEL=debug
- DEBUG=true
volumes:
# Mount source code for hot reload
- ./services/service-1:/app
- /app/node_modules # Exclude node_modules if Node.js service
command: npm run dev # Override with dev command
profiles:
- dev
service-2:
build:
context: ./services/service-2
dockerfile: Dockerfile.dev
target: development
environment:
- ENV=development
- LOG_LEVEL=debug
- DEBUG=true
volumes:
# Mount source code for hot reload
- ./services/service-2:/app
- /app/node_modules
command: npm run dev
profiles:
- dev
postgres:
profiles:
- dev
environment:
- POSTGRES_PASSWORD=dev_password # Different password for dev
ports:
- "5433:5432" # Different port for dev to avoid conflicts
redis:
profiles:
- dev
command: redis-server --appendonly yes --requirepass dev_redis_pass
# Development tools
adminer:
image: adminer:latest
container_name: adminer
restart: unless-stopped
profiles:
- dev
networks:
- f1r3fly
ports:
- "8080:8080"
environment:
- ADMINER_DEFAULT_SERVER=postgres
# Redis Commander for dev
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
restart: unless-stopped
profiles:
- dev
networks:
- f1r3fly
ports:
- "8081:8081"
environment:
- REDIS_HOSTS=local:redis:6379:0:dev_redis_pass
networks:
f1r3fly:
name: f1r3fly
external: true