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
The certbot instance in the webserver container should start requesting a certificate for the domain after at most 1 minute. You can check the progress using:
Run the following commands to configure Docker for IPv6 and Live restore and to install required dependencies, setup Docker Apt repository, and install Docker:
@@ -169,9 +161,9 @@ Please see the generic troubleshooting documentation in [Deployment#Troubleshoot
169
161
If batch jobs seem to be stuck, check the `Batch` dashboard in Grafana (see [Deployment#Grafana](Docker-deployment.md#metrics-grafanaprometheus)). The `Individual task completion rate` graph should show a variaty of tasks being completed per second. If this graph is empty or shows gaps this might indicate the batch jobs got stuck in a deadlock. In this case bring down the environment, remove the Redis and RabbitMQ volumes and start the environment again:
170
162
171
163
cd /opt/Internet.nl
172
-
dockercompose --project-name=internetnl-prod down
164
+
/opt/Internet.nl/docker/compose.sh down
173
165
docker volume rm internetnl-prod_rabbitmq
174
166
docker volume rm internetnl-prod_redis
175
-
env -i docker compose --env-file=docker/defaults.env --env-file=docker/host.env --env-file=docker/local.env up --wait --no-build
167
+
env -i /opt/Internet.nl/docker/compose.sh up --wait --no-build
176
168
177
169
This issue can happen on rare occasions, is you encounter this persistently please create an issue in the Internet.nl repository: https://github.com/internetstandards/Internet.nl/issues/new
Copy file name to clipboardExpand all lines: documentation/Docker-deployment.md
+24-67Lines changed: 24 additions & 67 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,68 +38,21 @@ A public domain name or subdomain is required. It should be possible to set the
38
38
39
39
After installation and basic configuration of the OS switch to `root` user.
40
40
41
-
Currently some Docker and Compose versions cause issues during setup (see: `documentation/Docker-getting-started.md#Prerequisites`). The following command will install a file that will prevent installing unsupported versions:
Run the following command to install required dependencies, setup Docker Apt repository, and install Docker:
84
-
41
+
Run the following commands to configure Docker for IPv6 and Live restore and to install required dependencies, setup Docker Apt repository, and install Docker:
@@ -177,15 +130,19 @@ After deployment is complete, all services are healthy and DNS is setup you can
177
130
178
131
For more information see: [documentation/Docker-live-tests.md](Docker-live-tests.md)
179
132
133
+
## Compose command
134
+
135
+
To reduce issues with different versions a Compose command is included in the installation and can be accessed using `/opt/Internet.nl/docker/compose.sh`. Use this command for everything where you would normaly use `docker compose` to manage the Compose project.
136
+
180
137
## Logging
181
138
182
139
Log output from containers/services can be obtained using the following command:
These same logs are also sent to the `journald` daemon to be logged by the OS. This can then be used to forward to remote logging, etc.
191
148
@@ -205,11 +162,11 @@ By default task start and completion is not logged. To enable this set the `CELE
205
162
206
163
When things don't seem to be working as expected and the logs don't give clear indications of the cause the first thing to do is check the status of the running containers/services:
207
164
208
-
dockercompose --project-name=internetnl-prod ps -a
165
+
/opt/Internet.nl/docker/compose.sh ps -a
209
166
210
167
Or use this command to omit the `COMMAND` and `PORTS` columns for a more compact view with only relevant information:
211
168
212
-
dockercompose --project-name=internetnl-prod ps -a --format "table {{.Name}}\t{{.Image}}\t{{.Service}}\t{{.RunningFor}}\t{{.Status}}"
169
+
/opt/Internet.nl/docker/compose.sh ps -a --format "table {{.Name}}\t{{.Image}}\t{{.Service}}\t{{.RunningFor}}\t{{.Status}}"
213
170
214
171
Containers/services should have a `STATUS` of `Up` and there should be no containers/services with `unhealthy`. The `db-migrate` having status `Exited (0)` is expected. Containers/services with a short uptime (seconds/minutes) might indicate it restarted recently due to an error.
215
172
@@ -219,12 +176,12 @@ If a container/service is not up and healthy the cause might be deduced by inspe
219
176
220
177
It might be possible not all containers that should be running are running. To have Docker Compose check the running instance and bring up any missing components run:
221
178
222
-
env -i docker compose --env-file=docker/defaults.env --env-file=docker/host.env --env-file=docker/local.env up --wait --no-build
179
+
env -i /opt/Internet.nl/docker/compose.sh up --wait --no-build
223
180
224
181
If this does not solve the issue you might want to reset the instance by bringing everything down and up again:
225
182
226
-
dockercompose --project-name=internetnl-prod down
227
-
env -i docker compose --env-file=docker/defaults.env --env-file=docker/host.env --env-file=docker/local.env up --wait --no-build
183
+
/opt/Internet.nl/docker/compose.sh down
184
+
env -i /opt/Internet.nl/docker/compose.sh up --wait --no-build
228
185
229
186
If this does not work problems might lay deeper and OS level troubleshooting might be required.
230
187
@@ -242,7 +199,7 @@ Docker Compose relies on an internal DNS resolver to resolve container/services
242
199
243
200
The issue can be resolved by restarting the application:
**notice**: the update logging might be cut-off at the end because the `cron-docker` container/service will be restarted in the process.
290
247
@@ -313,11 +270,11 @@ In essence downgrading is the same procedure as upgrading. For example, to roll
313
270
314
271
By default the installation will try to request a HTTPS certificate with Letsencrypt for the domain and it's subdomains. If this is not possible it will fall back to a self-signed 'localhost' certificate. If requesting a certificate fails you can debug it by viewing the logs using:
Copy file name to clipboardExpand all lines: documentation/Docker-getting-started.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,14 @@ This documented is intended as a quick simple guide to setup a development envir
4
4
5
5
## Prerequisites
6
6
7
-
An OCI compatible container runtime with [Compose V2](https://docs.docker.com/compose/migrate/) is required to run the project. For example one of the following:
7
+
An OCI compatible container runtime (Docker) with a recent [Compose](https://github.com/docker/compose) is required to run the project. For example one of the following:
8
8
9
9
-[Docker](https://docs.docker.com/get-docker/) for Linux, (supported)
10
10
-[Colima](https://github.com/abiosoft/colima) for Mac (recommended)
11
-
-[OrbStack](https://orbstack.dev/download) for Mac (non open source, free, tested version 1.10.2)
11
+
-[OrbStack](https://orbstack.dev/download) for Mac (non open source, free, tested version 2.0.5)
12
12
-[Docker](https://docs.docker.com/get-docker/) for Mac (supported)
13
13
-[Docker](https://docs.docker.com/get-docker/) for Windows (untested)
14
14
15
-
**notice**: some versions of Docker Engine might experience issues with internal DNS resolving and will cause tests to fail. Versions from and including `25.0.5` to and including `26.1.2` should be avoided.
16
-
17
-
**notice**: Docker Compose Plugin versions below and up to `2.27.2` should be avoided due to missing features.
18
-
19
15
**notice**: your Docker runtime should be configured with enough memory and CPU, otherwise the environment will be unstable. Minimum is at least 4GB memory and 2 CPU cores, more is better for quicker rebuild/restart of images/containers.
20
16
21
17
**for arm users (eg apple m1)**: nassl will not compile on x64 architectures, so use the option to start your container engine in x86 mode. For colima this can be done with `colima start --arch x86_64`. As per the system requirements noted above, the right way to start with colima would then be: `colima start --arch x86_64 --cpu 2 --memory 4`, but giving it some room would make that: `colima start --arch x86_64 --cpu 4 --memory 8`.
0 commit comments