-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.23 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
services:
mongo:
build: ./db
container_name: objectlens-mongo
restart: unless-stopped
networks:
- objectlens-network
environment:
- MONGO_INITDB_DATABASE=objectlens
ports:
- "27017:27017"
volumes:
- mongo_data:/data/db
healthcheck:
test: ["CMD-SHELL", 'mongosh --quiet --eval "db.runCommand({ ping: 1 }).ok" | grep 1']
interval: 5s
timeout: 5s
retries: 30
# backend:
# build: ./backend
# container_name: objectlens-backend
# restart: unless-stopped
# networks:
# - objectlens-network
# depends_on:
# mongo:
# condition: service_healthy
# environment:
# - CORS_ORIGINS=http://frontend:5173,http://localhost:5173
# ports:
# - "8000:8000"
# volumes:
# - ./data:/data:ro
# frontend:
# build: ./frontend
# container_name: objectlens-frontend
# restart: unless-stopped
# networks:
# - objectlens-network
# depends_on:
# - backend
# environment:
# - VITE_API_BASE=http://backend:8000
# ports:
# - "5173:5173"
# volumes:
# - ./frontend:/usr/src/app
networks:
objectlens-network:
driver: bridge
enable_ipv6: false
volumes:
mongo_data: