-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
45 lines (39 loc) · 968 Bytes
/
docker-compose.yaml
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
version: '3'
services:
mongodb:
image: mongo
container_name: mongodb
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGO_DATABASE}
volumes:
- mongodb-data:/data/db
mongo-express:
image: mongo-express
container_name: mongo-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_USER}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGO_PASSWORD}
- ME_CONFIG_MONGODB_SERVER=mongodb
restart: always
depends_on:
- mongodb
# andromeda:
# image: andromeda:1.0
# container_name: andromeda
# entrypoint: python3 /home/src/crawler.py start
# depends_on:
# - mongo-express
# environment:
# - MONGODB_HOST=mongodb
networks:
default:
name: mongo-express-network
volumes:
mongodb-data:
driver: local