Add Root execution pour le scrapper
Add DB to docker compose
This commit is contained in:
jeanGaston 2024-01-30 10:22:50 +01:00
parent 5e1a48b523
commit fa80edff71
2 changed files with 14 additions and 19 deletions

View File

@ -9,10 +9,8 @@ COPY ./main.py /app/
# Install any dependencies
RUN pip3 install --no-cache-dir bluepy
RUN apt-get update
RUN apt-get install -y bluez bluetooth
RUN service dbus start bluetoothd
# Set the entry point
CMD ["python", "main.py"]
#Run as root
USER root

View File

@ -13,17 +13,14 @@ services:
ports:
- '80:5000'
# database:
# image: 'mariadb:10.3'
# container_name: database
# restart: always
# environment:
# - MYSQL_USER: user
# - MYSQL_PASSWORD: mypassword
# - MYSQL_DATABASE: my_database
# - MYSQL_ROOT_PASSWORD: rootpassword
# ports:
# - '3306:3306'
# volumes:
# - ${PWD}/mariadb/:/var/lib/mysql/
db:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: mydatabase
MYSQL_USER: user
MYSQL_PASSWORD: password
volumes:
- data:/var/lib/mysql
ports:
- "3306:3306"