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
|
||||
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"]
|
||||
CMD ["python", "main.py"]
|
||||
#Run as root
|
||||
USER root
|
||||
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user