-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand.txt
More file actions
30 lines (22 loc) · 997 Bytes
/
command.txt
File metadata and controls
30 lines (22 loc) · 997 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
#step1: create network
docker network create docker-network
#step2: copy .env and docker-compose.yml
copy hotrotaichinh/api/.env.example hotrotaichinh/api/.env
copy hotrotaichinh/app/.env.example hotrotaichinh/app/.env
copy noithatlucmo/.env.local noithatlucmo/.env
copy hotrotaichinh/docker-compose.default.yml hotrotaichinh/docker-compose.yml
copy noithatlucmo/docker-compose.default.yml noithatlucmo/docker-compose.yml
#step3: build container (--build not require)
docker-compose -f nginx/docker-compose.yml up -d --build
docker-compose -f hotrotaichinh/docker-compose.yml up -d --build
docker-compose -f noithatlucmo/docker-compose.yml up -d --build
*note: command used
command in container:
docker exec -it container-name sh
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