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
# with compose configuration file planet.yml and leaves them running
123
-
docker compose -f planet.yml -p planet up -d --build
118
+
bash planet.sh up
124
119
125
-
# see if the docker containers are running
126
-
# ensure it says "Up" in STATUS column
120
+
# see if the docker containers are running, you may also do this in the docker desktop app
121
+
# ensure it says "Up" or "Running" in the status column
127
122
# with the exception of db-init, which may finished running and exited already
123
+
# if chatapi service is restarting or exited, please ignore it for now as we are working on a fix
128
124
docker container ls -a
129
125
130
126
# follow the log in action, press 'control+c' to exit the logs view
131
-
docker compose -f planet.yml -p planet logs -f
127
+
docker compose -p planet logs -f
132
128
```
133
129
134
130
## Services and Ports
@@ -155,18 +151,30 @@ Here are a few common Docker CLI commands you might need when working with `plan
155
151
-`docker logs <container-id> -f` – Follow the log output of a container.
156
152
-`docker images` – List images.
157
153
158
-
Here are some common Docker Compose commands you might need when working with `planet`. The following examples assume you are in the planet repository's docker folder:
154
+
Here are some common Docker Compose commands:
159
155
160
-
-`docker compose -f planet.yml -p planet up -d --build` – Spawn your environment for the *first time*.
156
+
-`docker compose -f <YAMLFile1> -f <YAMLFile2> -p <ProjectName> up -d --build` – Spawn your environment for the *first time*.
161
157
-`-f` – Specify an alternate compose file (default: docker-compose.yml).
162
158
-`-p` – Specify a project name (default: directory name).
163
159
-`up -d` – Create and start containers in the background.
164
160
-`--build` – Build images before starting containers
165
-
-`docker compose -f planet.yml -p planet logs -f` – Follow the log output. Press 'CTRL+C' to exit logs view.
-`docker compose -f <YAMLFile> -p <ProjectName> down -v` – Stop containers and remove containers, networks, volumes, and images created.
166
+
167
+
**Note: For Docker Compose commands, use the `planet.sh` script** to avoid specifying the YAML file path and project name each time. The script also checks for the credentials YAML file and merges it for CouchDB to function properly. This credentials file is generated after setting up an admin account in the Planet web interface during initial configuration.
Example: planet.sh up Start up the planet services for the first time in the background.
173
+
planet.sh stop Stop planet services.
174
+
planet.sh start Start planet services.
175
+
planet.sh restart Restart planet services.
176
+
planet.sh down Stop planet services and remove containers, networks, volumes, and images created.
177
+
```
170
178
171
179
We suggest referring to the [Docker CLI reference](https://docs.docker.com/engine/reference/commandline/cli/) and the [Docker Compose CLI reference](https://docs.docker.com/compose/reference/) to learn more about their commands and usage.
Copy file name to clipboardExpand all lines: pages/vi/vi-planet-configurations.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,15 +39,15 @@ Visit [http://localhost:3300](http://localhost:3300) or [http://127.0.0.1:3300](
39
39
-**macOS:**`cd ~/srv/planet`
40
40
-**Windows:**`cd ~/srv/planet`
41
41
42
-
3. Run `docker compose -f planet.yml -p planet start` to start the service.
42
+
3. Run `bash planet.sh start` to start the service.
43
43
44
44
## Configure Your Planet Community
45
45
46
46
Visit the initial admin configuration page by navigating to [http://localhost:3300](http://localhost:3300) or [http://127.0.0.1:3300](http://127.0.0.1:3300). **Use `planet` as both the username and password**, as specified in the Docker Compose YAML file from the previous step.
47
47
48
48

49
49
50
-
**WARNING:** Do not close this browser tab before completing the configuration, as you cannot return to this form. If you accidentally close the tab, run `docker compose -f planet.yml -p planet down -v` followed by `docker compose -f planet.yml -p planet up -d --build` to restart the process.
50
+
**WARNING:** Do not close this browser tab before completing the configuration, as you cannot return to this form. If you accidentally close the tab, run `bash planet.sh down` followed by `bash planet.sh up` to restart the process.
51
51
52
52
Fill out the configurations, ensuring your name matches your GitHub name for easy identification in Virtual Intern Nation. Select **Virtual Intern Nation (vi)** as the nation, as shown below. **After completing the configurations, save a screenshot of the page to post on the Discord server after submitting your registration request.**
53
53
@@ -92,17 +92,17 @@ Finally, post the screenshot you took earlier to [our Discord server's #vi-softw
0 commit comments