-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
·72 lines (61 loc) · 1.77 KB
/
docker-compose.yaml
File metadata and controls
executable file
·72 lines (61 loc) · 1.77 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
62
63
64
65
66
67
68
version: '3.8'
services:
db-xml-fetcher:
build: ./fetcher
container_name: db-xml-fetcher
environment:
- DB_CLIENT_SECRET=${DB_CLIENT_SECRET}
- DB_CLIENT_ID=${DB_CLIENT_ID}
volumes:
- /Volumes/Luca.m2/comp:/app/out #Path to save XML-Files
restart: unless-stopped # Automatically restart the container unless stopped manually
mariadb:
image: mariadb:latest
container_name: mariadb
#user: 501:20
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: bahn
MYSQL_USER: bahn
MYSQL_PASSWORD: root
healthcheck:
test: ["CMD", "mariadb", "-uroot", "-proot", "-e", "SELECT 1"]
interval: 10s
timeout: 5s
ports:
- "3306:3306"
volumes:
- "./sql/database-setup.sql:/docker-entrypoint-initdb.d/1.sql"
- "/Volumes/Luca.m2/DHBW/Bahn Mining Projekt/volumes/mariadb:/var/lib/mysql" # Persist MariaDB data CHANGE THIS
- "./config/mariadb/my.cnf:/etc/mysql/my.cnf" # Custom config for optimized performance
deploy:
resources:
limits:
memory: 6g
cpus: "5"
reservations:
memory: 2g # Reserve 2 GB of RAM for MariaDB
cpus: "1" # Reserve 1 vCPU for MariaDB
import:
build: ./bulkImporter
container_name: importer
depends_on:
mariadb:
condition: service_healthy
environment:
- DB_HOST=mariadb
volumes:
- /Volumes/Luca.m2/comp:/data #Data to import
- ./db-data:/out
jupyter:
image: jupyter/datascience-notebook:latest
container_name: jupyter
ports:
- "8081:8888"
- "8443:8889"
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=easy
- JUPYTER_PASSWORD=easy
volumes:
- ./:/home/jovyan/