-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (57 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
61 lines (57 loc) · 1.25 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
services:
slurm:
build:
context: .
dockerfile: slurm/Dockerfile
args:
USERNAME: ${SLURM_USERNAME:-atomate}
ports:
- "${SSH_PORT:-2222}:22"
volumes:
- slurm_data:/home/${SLURM_USERNAME:-atomate}/jobs
networks:
- atomate_network
restart: unless-stopped
env_file:
- .env
jupyter:
build:
context: .
dockerfile: jupyter/Dockerfile
args:
CREATE_AUTOPLEX_ENV: ${CREATE_AUTOPLEX_ENV:-false}
ports:
- "${JUPYTER_PORT:-8888}:8888"
- "${WEB_APP_PORT:-5001}:5001"
volumes:
- jupyter_data:/home/jovyan/work
- ./shared:/home/jovyan/shared
- ./notebooks:/tmp/notebooks
environment:
- MONGODB_HOST=mongodb
- MONGODB_PORT=${MONGODB_PORT:-27018}
- JUPYTER_TOKEN=atomate
networks:
- atomate_network
restart: unless-stopped
depends_on:
- mongodb
env_file:
- .env
mongodb:
image: mongo:latest
ports:
- "${MONGODB_PORT:-27018}:27017"
volumes:
- mongodb_data:/data/db
networks:
- atomate_network
command: mongod --port 27017
restart: unless-stopped
networks:
atomate_network:
driver: bridge
volumes:
slurm_data:
jupyter_data:
mongodb_data: