-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-linux.yml
45 lines (45 loc) · 1.09 KB
/
docker-compose-linux.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '2.3'
services:
mysql_db:
container_name: ai_mysql
build:
context: .
dockerfile: ./docker/Dockerfile-mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: ai_db
MYSQL_USER: research
MYSQL_PASSWORD: research
volumes:
- ./data/common_db/conf.d:/etc/mysql/conf.d
ports:
- "33060:33060"
networks:
- net
jupyter:
container_name: python_lab
build:
context: .
dockerfile: ./docker/Dockerfile-jupyter
user: root
volumes:
- ./home:/home/workspace
ports:
- "8888:8888"
command: jupyter lab --allow-root --ip=0.0.0.0 --no-browser --NotebookApp.token=''
runtime: nvidia
networks:
- net
- trains-server_backend
links:
- mysql_db:mysql_db
volumes:
mysql-storage:
driver: local
networks:
net:
driver: bridge
ipam:
driver: default
trains-server_backend:
external: true