-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.txt
More file actions
32 lines (25 loc) · 910 Bytes
/
command.txt
File metadata and controls
32 lines (25 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#step1: create network
docker network create hotrotaichinh
#step2: copy .env and docker-compose.yml
copy api/.env.example api/.env
copy app/.env.example app/.env
copy api/docker-compose.default.yml api/docker-compose.yml
copy app/docker-compose.default.yml app/docker-compose.yml
#step3: build container
docker-compose -f api/docker-compose.yml up -d --build
docker-compose -f app/docker-compose.yml up -d --build
docker-compose -f ../nginx/docker-compose.yml up -d --build
#step4: setup API
docker exec -it hotrotaichinh_api sh
composer install
php artisan key:generate
php artisan migrate
php artisan passport:install
*note: command used
remove cache:
docker system prune
docker system prune -a -f
*permission mysql:
docker exec -it hotrotaichinh_db sh
chown mysql:mysql /etc/mysql/my.cnf
chmod 600 /etc/mysql/my.cnf