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
{{ message }}
This repository was archived by the owner on Oct 7, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,11 @@ Use [`strapi/base`](#how-to-use-strapibase) to build a Dockerfile and create an
20
20
21
21
## How to use `strapi/strapi`
22
22
23
-
This image allows you to create a new strapi project or run a project from your host machine. The default command that will run in your project is [`strapi develop`](https://strapi.io/documentation/3.0.0-beta.x/cli/CLI.html#strapi-develop-dev).
23
+
This image allows you to create a new strapi project or run a project from your host machine. The default command that will run in your project is [`strapi develop`](https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-develop-dev).
24
24
25
25
### Creating a new project
26
26
27
-
When running this image, strapi will check if there is a project in the `/src/app` folder of the container. If there is nothing then it will run the [`strapi new`](https://strapi.io/documentation/3.0.0-beta.x/cli/CLI.html#strapi-new) command in the container /srv/app folder. You can create a new project by running this command.
27
+
When running this image, strapi will check if there is a project in the `/src/app` folder of the container. If there is nothing then it will run the [`strapi new`](https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-new) command in the container /srv/app folder. You can create a new project by running this command.
28
28
29
29
```bash
30
30
docker run -it -p 1337:1337 -v `pwd`/project-name:/srv/app strapi/strapi
@@ -37,7 +37,7 @@ Once the project is created it will be available in this folder on your computer
37
37
38
38
**Environment variables**
39
39
40
-
When creating a new project with this image you can pass database configurations to the [`strapi new`](https://strapi.io/documentation/3.0.0-beta.x/cli/CLI.html#strapi-new) command.
40
+
When creating a new project with this image you can pass database configurations to the [`strapi new`](https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-new) command.
41
41
42
42
-`DATABASE_CLIENT` a database provider supported by Strapi: (sqlite, postgres, mysql ,mongo).
43
43
-`DATABASE_HOST` database host.
@@ -46,7 +46,7 @@ When creating a new project with this image you can pass database configurations
46
46
-`DATABASE_USERNAME` database username.
47
47
-`DATABASE_PASSWORD` database password.
48
48
-`DATABASE_SSL` boolean for SSL.
49
-
-`EXTRA_ARGS` pass extra args to the [`strapi new`](https://strapi.io/documentation/3.0.0-beta.x/cli/CLI.html#strapi-new).
49
+
-`EXTRA_ARGS` pass extra args to the [`strapi new`](https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-new).
50
50
51
51
**Example**
52
52
@@ -85,7 +85,7 @@ This will start by installing the dependencies and then run `strapi develop` in
85
85
If you are using environment variables in your code you can pass them with the -e option (e.g `docker run -e ENV_VAR=sth ...`).
86
86
87
87
You can for example set your database configuration with environment variables.
88
-
Because the default container command is [`strapi develop`](https://strapi.io/documentation/3.0.0-beta.x/cli/CLI.html#strapi-develop-dev) you will need to update your `development` database configuration following the `production` example in the [documentation](https://strapi.io/documentation/3.0.0-beta.x/concepts/configurations.html#dynamic-configurations). Then you can run:
88
+
Because the default container command is [`strapi develop`](https://strapi.io/documentation/v3.x/cli/CLI.html#strapi-develop-dev) you will need to update your `development` database configuration following the `production` example in the [documentation](https://strapi.io/documentation/v3.x/concepts/configurations.html#dynamic-configurations). Then you can run:
0 commit comments