-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
31 lines (30 loc) · 1.05 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
services:
mongodb:
image: mongo:${MONGO_VERSION}
container_name: crocodile_mongodb
ports:
- "${MONGO_SERVER_PORT}:27017"
volumes:
- ./mongo_data:/data/db # Local directory for MongoDB data
- ./mongod.conf:/etc/mongod.conf # Custom MongoDB config
command: mongod --config /etc/mongod.conf
restart: always # Restart policy to always restart the container
jupyter:
image: roby944/jupyter-minimal-extended:latest
container_name: crocodile_jupyter
ports:
- "${JUPYTER_SERVER_PORT}:8888"
volumes:
- ./notebooks:/home/jovyan/work
- ./crocodile:/home/jovyan/work/crocodile
- ./tables:/home/jovyan/work/tables
- ./training/:/home/jovyan/work/training
- ./test/:/home/jovyan/work/test
command: start-notebook.sh --NotebookApp.token='' --NotebookApp.password=''
environment:
- JUPYTER_ENABLE_LAB=yes
env_file:
- .env # Load environment variables from .env file
depends_on:
- mongodb
restart: always # Restart policy to always restart the container