Uptade
Add Root execution pour le scrapper Add DB to docker compose
This commit is contained in:
parent
5e1a48b523
commit
fa80edff71
@ -9,10 +9,8 @@ COPY ./main.py /app/
|
|||||||
|
|
||||||
# Install any dependencies
|
# Install any dependencies
|
||||||
RUN pip3 install --no-cache-dir bluepy
|
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
|
# Set the entry point
|
||||||
CMD ["python", "main.py"]
|
CMD ["python", "main.py"]
|
||||||
|
#Run as root
|
||||||
|
USER root
|
||||||
@ -13,17 +13,14 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- '80:5000'
|
- '80:5000'
|
||||||
|
|
||||||
# database:
|
db:
|
||||||
# image: 'mariadb:10.3'
|
image: mariadb
|
||||||
# container_name: database
|
environment:
|
||||||
# restart: always
|
MYSQL_ROOT_PASSWORD: password
|
||||||
# environment:
|
MYSQL_DATABASE: mydatabase
|
||||||
# - MYSQL_USER: user
|
MYSQL_USER: user
|
||||||
# - MYSQL_PASSWORD: mypassword
|
MYSQL_PASSWORD: password
|
||||||
# - MYSQL_DATABASE: my_database
|
volumes:
|
||||||
# - MYSQL_ROOT_PASSWORD: rootpassword
|
- data:/var/lib/mysql
|
||||||
|
ports:
|
||||||
# ports:
|
- "3306:3306"
|
||||||
# - '3306:3306'
|
|
||||||
# volumes:
|
|
||||||
# - ${PWD}/mariadb/:/var/lib/mysql/
|
|
||||||
Loading…
Reference in New Issue
Block a user