Skip to content

Commit 73bb06e

Browse files
committed
Update Docker Readme
1 parent 8de7c14 commit 73bb06e

1 file changed

Lines changed: 19 additions & 13 deletions

File tree

docker/README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,52 @@ First, install [Docker Compose or Docker Desktop](https://docs.docker.com/compos
77
Second, initialize a new UserFrosting project:
88

99
1. Get UserFrosting repository :
10-
```
11-
docker run --rm -it -v "$(pwd):/app" composer create-project userfrosting/userfrosting UserFrosting "^6.0" --no-scripts --no-install --ignore-platform-reqs
10+
```bash
11+
docker run --rm -it -v "$(pwd):/app" composer create-project userfrosting/userfrosting UserFrosting "^6.0" --no-scripts --no-install --ignore-platform-reqs --stability=beta
1212
```
1313
2. Change to the new directory :
14-
```
14+
```bash
1515
cd UserFrosting
1616
```
1717
3. Copy the default env file :
18-
```
18+
```bash
1919
cp app/.env.docker app/.env
2020
```
2121
4. Build all the docker containers:
22-
```
22+
```bash
2323
docker-compose build --no-cache
2424
```
2525
5. Start all the containers:
26-
```
26+
```bash
2727
docker-compose up -d
2828
```
2929
6. Set some directory permissions (your may have to enter your root password):
30-
```
30+
```bash
3131
sudo chown -R $USER: .
3232
sudo chmod 777 app/{logs,cache,sessions}
3333
```
3434
7. Install all composer modules used in UserFrosting:
35-
```
35+
```bash
3636
docker-compose exec app composer update
3737
```
3838
8. Install UserFrosting (database configuration and migrations, creation of admin user, ...). You'll need to provide info to create the admin user.
39-
```
39+
```bash
4040
docker-compose exec app php bakery bake
4141
```
4242

43+
9. Restart Vue Container now that Bakery installed frontend assets:
44+
```bash
45+
docker-compose restart vue-frontend
46+
```
47+
4348
Now visit [http://localhost:8080](http://localhost:8080) to see your UserFrosting homepage!
4449

4550
> All call to bakery commands need to be prefixed by docker-compose, since you need to run theses commands on the containers, not your computer. For example : `docker-compose exec app php bakery ...`.
4651

4752
**You can paste these into a bash file and execute it!**
4853

4954
```bash
50-
docker run --rm -it -v "$(pwd):/app" composer create-project userfrosting/userfrosting UserFrosting "^6.0" --no-scripts --no-install --ignore-platform-reqs
55+
docker run --rm -it -v "$(pwd):/app" composer create-project userfrosting/userfrosting UserFrosting "^6.0" --no-scripts --no-install --ignore-platform-reqs --stability=beta
5156
cd UserFrosting
5257
cp app/.env.docker app/.env
5358
docker-compose build --no-cache
@@ -56,27 +61,28 @@ sudo chown -R $USER: .
5661
sudo chmod 777 app/{logs,cache,sessions}
5762
docker-compose exec app composer update
5863
docker-compose exec app php bakery bake
64+
docker-compose restart vue-frontend
5965
```
6066

6167
**Start / stop containers**
6268

6369
If you need to stop the UserFrosting docker containers, just change to your userfrosting directory and run:
6470

65-
```
71+
```bash
6672
docker-compose stop
6773
```
6874

6975
To start containers again, change to your userfrosting directory and run:
7076

71-
```
77+
```bash
7278
docker-compose up -d
7379
```
7480

7581
**Purge docker containers to start over**
7682

7783
If you need to purge your docker containers (this will not delete any source file or sprinkle, but will empty the database), run:
7884

79-
```
85+
```bash
8086
docker-compose down --remove-orphans
8187
```
8288

0 commit comments

Comments
 (0)