File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
- # Use a more recent base image
2
1
FROM ubuntu:20.04
3
2
4
3
# Metadata as defined at http://label-schema.org
Original file line number Diff line number Diff line change 68
68
@echo " THE PASSWORD FOR ${bold} $( MYSQL_USER) ${normal} IS ${bold} $( MYSQL_PASSWORD) ${normal} ;"
69
69
@echo ' '
70
70
@echo " docker exec -it apache_db /bin/bash \n \
71
- mysql -p \n \
71
+ mysql -p ' $(MYSQL_ROOT_PASSWORD) ' \n \
72
72
GRANT ALL PRIVILEGES ON * . * TO ' $(MYSQL_USER)' @' %' with grant option; \n "
73
73
74
74
docker-compose -f $(COMPOSE_FILE) up -d --remove-orphans
Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ Open `docker-compose.local.yml` and review [this line](https://github.com/htmlgr
70
70
### Windows
71
71
72
72
``` bash
73
- ~ git clone https:// github.com/ htmlgraphic/Apache.git ~ /Docker/Apache; cd ~ /Docker/Apache
74
- ~ copy .env.example .env
75
- ~ docker-compose -f docker-compose.local.yml up -d
73
+ > git clone git@ github.com: htmlgraphic/Apache.git ~ /Docker/Apache; cd ~ /Docker/Apache
74
+ > copy .env.example .env
75
+ > docker-compose -f docker-compose.local.yml up -d
76
76
```
77
77
78
78
> Optional, are you having problems on Windows? Disable Firewall
79
79
80
80
``` bash
81
- ~ netsh advfirewall show currentprofile
82
- ~ netsh advfirewall set allprofiles state off
81
+ > netsh advfirewall show currentprofile
82
+ > netsh advfirewall set allprofiles state off
83
83
```
84
84
85
85
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
restart : unless-stopped
6
6
container_name : apache
7
7
volumes :
8
- - ' ~/SITES/docker:/data' # Preferred local working dir
8
+ - ' ~/SITES/docker:/data' # <- Change to preferred local working dir
9
9
# - '/c/Users/southpark/docker:/data'
10
10
links :
11
11
- ' db:mysql'
You can’t perform that action at this time.
0 commit comments