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 Sep 27, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,19 +25,27 @@ total 16K
25
25
-rw-r--r-- 1 user 1.4K Jul 15 17:43 README.md
26
26
-rw-r--r-- 1 user 625 Jul 15 17:41 docker-compose.yml
27
27
drwxr-xr-x 36 user 1.2K Jul 15 13:56 hitobito
28
-
-rw-r--r-- 1 user 153 Jul 15 10:35 hitobito.code-workspace
29
28
drwxr-xr-x 27 user 864 Jun 11 09:30 hitobito_generic
30
29
drwxr-xr-x 29 user 928 Jul 15 09:43 hitobito_insieme
31
30
```
32
31
32
+
### Exposed Ports
33
+
34
+
The `docker-compose.yml` file does expose all relevant ports.
35
+
But it does not assign them a well-known port.
36
+
This means, that it is _intentionally_ not possible to access the main application using `http://localhost:3000`!
37
+
Either you use `docker-compose ps` (or the `docker-compose port SERVICE PORTNUMBER` command) to get the actual port Docker assigned – or you use something like [Reception](https://github.com/nxt-engineering/reception).
38
+
39
+
Why would you need this _Reception_ thingy? Because it makes all the services accessible through a reverse proxy that is accessible using `http://SERVICENAME.PROJECTNAME.docker` (or `http://SERVICENAME.PROJECTNAME.local` on Linux).
40
+
This makes work more convenient and allows to have multiple projects, that all bind to the same port (e.g. `3000`), running at the same time.
41
+
(Because Docker will handle the port conflict for us.)
42
+
As an extra you get an overview over all running services and their exposed ports for free at `http://reception.docker` (or `http://reception.local` on linux).
43
+
33
44
## Docker Runtime
34
45
35
46
The simplest way to work on hitobito is to use Docker:
36
47
37
48
```bash
38
-
# First time
39
-
docker-compose run --rm app rake db:seed wagon:seed
40
-
41
49
# Every other time
42
50
docker-compose up app
43
51
@@ -90,6 +98,14 @@ root@a42b42c42d42:/app/hitobito# cd ../hitobito_WAGON/
90
98
root@a42b42c42d42:/app/hitobito_WAGON# rspec
91
99
```
92
100
101
+
## Seed
102
+
103
+
If you need to re-seed your db, use the following command:
104
+
105
+
```
106
+
docker-compose run --rm app rake db:seed wagon:seed
107
+
```
108
+
93
109
## Full-text search
94
110
95
111
Hitobito relies on Sphinx Search for indexing Persons, Events and Groups.
0 commit comments