forked from soroventures/EventHorizon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (63 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (63 loc) · 1.35 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
version: '3.9'
services:
mongo:
image: mongo:7-jammy
container_name: eventhorizon_mongo
restart: unless-stopped
environment:
MONGO_INITDB_DATABASE: eventhorizon
volumes:
- mongo_data:/data/db
networks:
- app_network
redis:
image: redis:7-alpine
container_name: eventhorizon_redis
restart: unless-stopped
volumes:
- redis_data:/data
networks:
- app_network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: eventhorizon_backend
restart: unless-stopped
env_file:
- .env
environment:
MONGO_URI: mongodb://mongo:27017/eventhorizon
REDIS_HOST: redis
REDIS_PORT: 6379
NODE_ENV: production
ports:
- "${PORT:-5000}:5000"
depends_on:
- mongo
- redis
networks:
- app_network
frontend:
image: node:20-alpine
container_name: eventhorizon_frontend
working_dir: /app
volumes:
- ./frontend:/app
- frontend_modules:/app/node_modules
command: sh -c "npm install --legacy-peer-deps && npm run dev -- --host"
environment:
VITE_API_URL: http://backend:5000
ports:
- "3000:3000"
depends_on:
- backend
networks:
- app_network
volumes:
mongo_data:
redis_data:
frontend_modules:
networks:
app_network:
driver: bridge