Readme 1.03 KB
Newer Older
marc duez's avatar
marc duez committed
1
2
First start

marc duez's avatar
marc duez committed
3
4
#step 0
run 'make install' ans 'make init' inside /vidjil/docker/server/py4web
marc duez's avatar
marc duez committed
5

marc duez's avatar
marc duez committed
6
7
8
#step 1 
build docker image
'docker build --no-cache -t vidjil/server2:latest . '
marc duez's avatar
marc duez committed
9
10

#step 2
marc duez's avatar
marc duez committed
11
12
Make sure vidjil/server/py4web/vidjil/databases 
and vidjil/docker/volumes/mysql2 folders are empty (in case you mounted those volumes in your docker-compose)
marc duez's avatar
marc duez committed
13
14

#step 3
marc duez's avatar
marc duez committed
15
16
start mysql service first 
'docker-compose -f docker-compose-py4web.yml up -d mysql'
marc duez's avatar
marc duez committed
17
18

#step 4
marc duez's avatar
marc duez committed
19
20
start docker 
docker-compose -f docker-compose-py4web.yml up -d
marc duez's avatar
marc duez committed
21
22

#step 5
marc duez's avatar
marc duez committed
23
24
load backup .sql file ( un fichier de backup se trouve sur bbi:/mnt/data/export/db-backup.sql )
'mysql --protocol=TCP --port=3307 -u vidjil -prootpass vidjil < db-backup.sql'
marc duez's avatar
marc duez committed
25
26

#step 6
marc duez's avatar
marc duez committed
27
28
29
30
stop docker
'docker-compose down --remove-orphans'

#step 7
marc duez's avatar
marc duez committed
31
start docker again
marc duez's avatar
marc duez committed
32
'docker-compose -f docker-compose-py4web.yml up -d'
marc duez's avatar
marc duez committed
33

marc duez's avatar
marc duez committed
34
35
36
37
38

localhost               > vidjil/browser
localhost/vidjil        > vidjil/server
localhost/_dashboard    > py4web admin panel (default password : password)
localhost:5555          > flower / celery monitoring tool