-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
59 lines (59 loc) · 1.17 KB
/
docker-compose.dev.yaml
File metadata and controls
59 lines (59 loc) · 1.17 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
---
volumes:
rabbitmq-data:
rabbitmq-log:
redis-data:
networks:
backend:
external: true
services:
compiler:
container_name: compiler
build:
context: .
dockerfile: Dockerfile.dev
privileged: true
depends_on:
- rabbitmq
- redis
develop:
watch:
- action: sync
path: ./
target: /usr/src/app
ignore:
- node_modules/
- action: rebuild
path: ./pacage.json
environment:
NODE_ENV: development
command: ["npx", "nodemon", "--exec", "ts-node", "src/server.ts"]
ports:
- 3002:3002
restart: unless-stopped
networks:
- backend
rabbitmq:
image: rabbitmq:3-management-alpine
restart: always
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: "admin"
RABBITMQ_DEFAULT_PASS: "admin"
ports:
- 5672:5672
- 15672:15672
volumes:
- rabbitmq-data:/var/lib/rabbitmq/
- rabbitmq-log:/var/log/rabbitmq
networks:
- backend
redis:
image: redis:alpine
restart: always
ports:
- 6379:6379
volumes:
- redis-data:/root/redis
networks:
- backend