You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/README.md
+14-12Lines changed: 14 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,34 +9,36 @@ Second, initialize a new UserFrosting project:
9
9
1. Copy `app/sprinkles.example.json` to `app/sprinkles.json`
10
10
2. Run `chmod 777 app/{logs,cache,sessions}` to fix file permissions for web server. (NOTE: File
11
11
permissions should be properly secured in a production environment!)
12
-
3. Run `docker-compose run composer install --ignore-platform-reqs --no-scripts` to install all composer modules. (https://hub.docker.com/_/composer) Sometimes dependencies or Composer scripts require the availability of certain PHP extensions. You can work around this as follows: Pass the `--ignore-platform-reqs and --no-scripts` flags to install or update
13
-
4. Run `docker-compose run node npm install` to install all npm modules.
14
-
5. Run `docker-compose run composer update --ignore-platform-reqs --no-scripts` to install remaining composer modules
15
-
6. Run `docker-compose run node npm run uf-assets-install` to install all frontend vendor assets.
12
+
3. Run `docker run --rm -it --volume ${pwd}:/app composer install --ignore-platform-reqs --no-scripts` to install all composer modules. (https://hub.docker.com/_/composer) Sometimes dependencies or Composer scripts require the availability of certain PHP extensions. You can work around this as follows: Pass the `--ignore-platform-reqs and --no-scripts` flags to install or update
13
+
4. Run `docker run --rm -it --volume ${pwd}:/app node:alpine /bin/sh -c "cd /app/build ; npm install; npm run uf-assets-install"` to install all npm modules and frontend vendor assets.
16
14
17
15
Now you can start up the entire Nginx + PHP + MySQL stack using docker with:
18
16
19
-
$ docker-compose up -d
17
+
```bash
18
+
$ docker-compose up -d
19
+
```
20
20
21
21
the `-d` flag will launch this in the background so you can continue to use the terminal window. On the first run you need to init the database (your container name may be different depending on the name of your root directory):
0 commit comments