-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.79 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
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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
depends_on:
- backend
environment:
- NEXT_PUBLIC_API_URL=http://localhost:4000
networks:
- app-network
develop:
watch:
- action: sync
path: ./frontend
target: /app
ignore:
- node_modules/
- action: rebuild
path: package.json
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "4000:4000"
- "4001:4001"
depends_on:
- mongo
- rabbitmq
environment:
- DATABASE_URL=mongodb://mongo:27017/you_app
- RABBITMQ_URL=amqp://rabbitmq
- JWT_SECRET=abela-a@youapp
- JWT_REFRESH_SECRET=abelardhana@youapp
- JWT_EXPIRATION=15m
- JWT_REFRESH_EXPIRATION=1d
- SOCKET_PORT=4001
networks:
- app-network
develop:
watch:
- action: sync
path: ./backend
target: /app
ignore:
- node_modules/
- action: rebuild
path: package.json
mongo:
image: mongo:latest
container_name: mongo
ports:
- "27017:27017"
networks:
- app-network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
networks:
- app-network
networks:
app-network:
driver: bridge