File tree Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Expand file tree Collapse file tree 2 files changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,23 @@ docker-compose run linuxfr.org bin/rails db:setup
25
25
Finally, the environment is ready and you can open [ http://dlfp.lo ] ( http://dlfp.lo )
26
26
in your favorite browser.
27
27
28
- Note: to be able to access this URL, you'll need to add the following line
29
- into the ` /etc/hosts ` file of your machine:
28
+ Notes:
29
+
30
+ 1 . to be able to access this URL, you'll need to add the following line
31
+ into the ` /etc/hosts ` file of your machine:
32
+
33
+ ```
34
+ 127.0.0.1 dlfp.lo image.dlfp.lo
35
+ ```
36
+
37
+ 2 . for [ rootless containers] ( https://rootlesscontaine.rs/ ) , you'll need
38
+ to allow standard users to listen on ports less than 1024
39
+ (this is needed because linuxfr use port 80 and 443):
40
+
41
+ ``` sh
42
+ sudo sysctl net.ipv4.ip_unprivileged_port_start=80
43
+ ```
30
44
31
- ```
32
- 127.0.0.1 dlfp.lo image.dlfp.lo
33
- ```
34
45
35
46
Personalize configuration
36
47
=========================
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ services:
10
10
volumes :
11
11
# Share host directories so, the developer can edit them
12
12
# and see the result without need to restart the container
13
- - ./app:/linuxfr.org/app
14
- - ./db:/linuxfr.org/db
15
- - ./public:/linuxfr.org/public
16
- - ./test:/linuxfr.org/test
13
+ - ./app:/linuxfr.org/app:Z
14
+ - ./db:/linuxfr.org/db:Z
15
+ - ./public:/linuxfr.org/public:Z
16
+ - ./test:/linuxfr.org/test:Z
17
17
# uploads are shared with the nginx service
18
18
- data-uploads:/linuxfr.org/uploads
19
19
tmpfs :
@@ -45,8 +45,8 @@ services:
45
45
env_file :
46
46
- deployment/default.env
47
47
volumes :
48
- - ./deployment/nginx/templates:/etc/nginx/templates
49
- - ./public/fonts:/var/linuxfr/fonts
48
+ - ./deployment/nginx/templates:/etc/nginx/templates:Z
49
+ - ./public/fonts:/var/linuxfr/fonts:Z
50
50
- data-uploads:/var/linuxfr/uploads
51
51
ports :
52
52
- " 80:80"
You can’t perform that action at this time.
0 commit comments