Unverified Commit da83d1fc authored by Fernando Verdugo's avatar Fernando Verdugo Committed by GitHub
Browse files

Fix/1270 dockers (#1290)

fix(dockers): Update path files and .env

Issue #1270
parent d1b9b469
# MySQL Database config variables
# If you change password remember update dockerfy/dockers/back/ravada.conf
MYSQL_DATABASE=ravada
MYSQL_ROOT_PASSWORD=Pword12345*
MYSQL_HOST=127.0.0.1
MYSQL_PORT=33306
MYSQL_USER=rvd_user
MYSQL_PASSWORD=Pword12345*
MYSQL_MY_DATABASE=ravada
......@@ -9,16 +9,9 @@ services:
networks:
- ravada_network
image: mysql:5.7
env_file: .env
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
environment:
- MYSQL_DATABASE=ravada
- MYSQL_ROOT_PASSWORD=Pword12345*
- MYSQL_HOST=127.0.0.1
- MYSQL_PORT=33306
- MYSQL_USER=rvd_user
- MYSQL_PASSWORD=Pword12345*
- MYSQL_MY_DATABASE=ravada
ravada-front:
container_name: ravada-front
......@@ -27,16 +20,15 @@ services:
- "/etc/localtime:/etc/localtime:ro"
- "~/src/ravada:/ravada"
- "/opt/ravada/screenshots:/var/www/img/screenshots"
ports:
- "3000:3000"
expose:
- "3000"
networks:
- ravada_network
#image download from dockerhub
#By default download from dockerhub
image: ravada/front
#build to build from sources
#If you want to local build
#build: dockers/front/.
restart: unless-stopped
......@@ -59,13 +51,13 @@ services:
- "55900-55999:55900-55999"
networks:
- ravada_network
#image download from dockerhub
#By default download from dockerhub
image: ravada/back
#build to build from sources
#If you want to local build
#build: dockers/back/.
privileged: true
restart: unless-stopped
depends_on:
- ravada-mysql
......
......@@ -21,7 +21,8 @@ startsecs=5
priority=2
[program:rvd_back]
command=bin/rvd_back.pl
environment=PERL5LIB="./lib"
command=./script/rvd_back
autorestart=true
startretries=3
priority=5
......@@ -32,4 +33,4 @@ directory=/
startsecs = 8
autorestart = false
startretries = 1
priority=6
\ No newline at end of file
priority=6
......@@ -28,8 +28,6 @@ ENV PERL5LIB /root/local/lib/perl5:/root/lib/:/ravada
COPY supervisord.conf /etc/supervisord.conf
#RUN mkdir /ravada
#ADD src/ravada /ravada
COPY ravada.conf /etc/ravada.conf
WORKDIR /ravada
......
......@@ -6,8 +6,9 @@ loglevel=error
logfile_maxbytes=0
[program:rvd_front]
command=/usr/bin/morbo rvd_front.pl
environment=PERL5LIB="./lib"
command=morbo ./script/rvd_front
autostart=true
autorestart=true
startsecs=5
priority=1
\ No newline at end of file
priority=1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment