|
163 | 163 | ),
|
164 | 164 | ],
|
165 | 165 | ),
|
166 |
| - ui.nav_panel("Docker-Compose", "Panel A content"), |
| 166 | + ui.nav_panel("Docker-Compose", |
| 167 | + ui.h2("Update docker-compose.yaml for your local storage"), |
| 168 | + ui.p(ui.strong("Note: "), ui.code("source"), " is the storage location of your local machine. This location will be mapped to ", ui.code("/data"), " directory inside of the container. Here we are mounting the local variable ", ui.code("$HOME"), " directory to ", ui.code("/data"), " inside of the container. Change the value ", ui.code("$HOME"), " to reflect your local storage system."), |
| 169 | + ui.card(ui.HTML( |
| 170 | + """ |
| 171 | +<code>version: "3.9"<br> |
| 172 | +x-data-volumes:<br> |
| 173 | + &data-volume<br> |
| 174 | + type: bind<br> |
| 175 | + source: $HOME<br> |
| 176 | + target: /data<br> |
| 177 | +<br> |
| 178 | +services:<br> |
| 179 | + seqsender:<br> |
| 180 | + container_name: seqsender<br> |
| 181 | + image: seqsender:latest<br> |
| 182 | + build:<br> |
| 183 | + context: .<br> |
| 184 | + dockerfile: Dockerfile<br> |
| 185 | + args:<br> |
| 186 | + - micromamba_version=1.5.3<br> |
| 187 | + restart: always<br> |
| 188 | + volumes:<br> |
| 189 | + - *data-volume<br> |
| 190 | + command: tail -f /dev/null<br> |
| 191 | +</code>""" |
| 192 | + ), |
| 193 | + style=terminal_css, |
| 194 | + ), |
| 195 | + ui.h2("Start ", ui.code("seqsender"), " container"), |
| 196 | + ui.card( |
| 197 | + ui.p(ui.code("docker-compose up -d")), |
| 198 | + style=terminal_css, |
| 199 | + ), |
| 200 | + ui.p("Running docker-compose with the flag ", ui.code("-d"), " runs the container in detached mode, allowing the container to continue to run in the background. For more information refer to ", ui.a("docker-compose documentation", href="https://docs.docker.com/reference/cli/docker/compose/up/"), "."), |
| 201 | + ), |
167 | 202 | id="docker_options",
|
168 | 203 | ),
|
169 | 204 | ui.HTML(
|
170 | 205 | """
|
171 |
| -<h2>check if the container is created successfully</h2> |
| 206 | +<h2>Check if the container is created successfully</h2> |
172 | 207 | <pre><code>docker container ps</code></pre>
|
173 | 208 | """
|
174 | 209 | ),
|
175 | 210 | ui.card(
|
176 | 211 | ui.HTML(
|
177 | 212 | """
|
178 | 213 | docker container ps<br>
|
179 |
| -CONTAINER ID | | IMAGE | | COMMAND | | CREATED | STATUS | PORTS | NAMES |
| 214 | +CONTAINER ID | | IMAGE | | COMMAND | | CREATED | STATUS | PORTS | NAMES<br> |
180 | 215 | b37b6b19c4e8 seqsender:latest "/bin/bash" 5 hours ago Up 5 hours | | seqsender
|
181 | 216 | """
|
182 | 217 | ),
|
|
0 commit comments