-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
46 lines (42 loc) · 997 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
services:
hub:
build:
context: .
args:
- PAPER_ID
dockerfile: Docker_hub.Dockerfile
container_name: hub
env_file: .env
ports:
- "8888:8888"
volumes:
- conda:/opt/conda
- notebooks:/home/joyvan/notebooks
depends_on:
- db
db:
build:
context: .
args:
- MYSQL_USER
- MYSQL_HOST
- MYSQL_ROOT_PASSWORD
- MYSQL_ROOT_HOST
dockerfile: Docker_db.Dockerfile
container_name: db
env_file: .env
ports:
- "3306:3306"
volumes:
- ./config/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
- db_data:/var/lib/mysql
- ./config/grant_root_permissions.sql:/docker-entrypoint-initdb.d/grant_root_permissions.sql
restart:
on-failure
networks:
spyglass_network:
name: spyglass_net
volumes: # Docker managed mappings.
conda: # Saves time declaring env
notebooks: # Saves user notebook edits
db_data: # Allows persistent db data