-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 826 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 826 Bytes
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
version: '3.8'
services:
mongodb:
image: mongo:7.0
container_name: simfinity_mongo
restart: unless-stopped
ports:
- "27017:27017"
environment:
MONGO_INITDB_DATABASE: simfinity_example
volumes:
- mongodb_data:/data/db
- ./mongo-init:/docker-entrypoint-initdb.d
networks:
- simfinity_network
# Opcional: MongoDB Express (interfaz web para administrar MongoDB)
mongo-express:
image: mongo-express:1.0.2
container_name: simfinity_mongo_express
restart: unless-stopped
ports:
- "8081:8081"
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongodb:27017/
ME_CONFIG_BASICAUTH: false
depends_on:
- mongodb
networks:
- simfinity_network
volumes:
mongodb_data:
networks:
simfinity_network:
driver: bridge