File tree 5 files changed +45
-8
lines changed
5 files changed +45
-8
lines changed Original file line number Diff line number Diff line change @@ -173,3 +173,4 @@ web/static/js/*.bundle.js.LICENSE.txt
173
173
/documents
174
174
/web /static /css /daisy.min.css
175
175
/web /static /css /daisy.css
176
+ /docker /nginx /nginx.conf
Original file line number Diff line number Diff line change @@ -24,6 +24,19 @@ Create a `.env` file in the project root to override default environment variabl
24
24
25
25
## Installation
26
26
27
+ ### Configure Nginx
28
+
29
+ Copy the Nginx configuration template:
30
+
31
+ ``` bash
32
+ cp ./docker/nginx/nginx.conf.template ./docker/nginx/nginx.conf
33
+ ```
34
+ Customize ` nginx.conf ` as needed and then start or restart the Nginx service:
35
+
36
+ ``` bash
37
+ docker compose restart nginx
38
+ ```
39
+
27
40
### Build and Start Services
28
41
29
42
Build and start all services defined in ` docker-compose.yaml ` :
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ services:
21
21
db :
22
22
image : postgres:16.4-bullseye
23
23
restart : unless-stopped
24
+ expose :
25
+ - " 5432"
24
26
environment :
25
27
POSTGRES_PASSWORD : ${DB_PASSWORD:-daisy}
26
28
POSTGRES_USER : ${DB_USER:-daisy}
@@ -35,6 +37,7 @@ services:
35
37
restart : unless-stopped
36
38
volumes :
37
39
- statics:/public/static:ro
40
+ - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
38
41
ports :
39
42
- ' 80:80'
40
43
- ' 443:443'
@@ -46,8 +49,8 @@ services:
46
49
solr :
47
50
build : ./docker/solr
48
51
restart : unless-stopped
49
- ports :
50
- - " 8983:8983 "
52
+ expose :
53
+ - " 8983"
51
54
networks :
52
55
- daisy_network
53
56
volumes :
@@ -58,15 +61,15 @@ services:
58
61
restart : unless-stopped
59
62
networks :
60
63
- daisy_network
61
- ports :
62
- - " 15672:15672 "
63
- - " 5672:5672 "
64
+ expose :
65
+ - " 15672"
66
+ - " 5672"
64
67
# task monitoring
65
68
flower :
66
69
image : mher/flower:0.9.7
67
70
command : --broker=amqp://guest:guest@mq:5672// --broker_api=http://guest:guest@mq:15672/api/
68
- ports :
69
- - " 5555:5555 "
71
+ expose :
72
+ - " 5555"
70
73
restart : unless-stopped
71
74
networks :
72
75
- daisy_network
Original file line number Diff line number Diff line change 1
1
FROM nginx:alpine
2
- COPY nginx.conf /etc/nginx/nginx.conf
2
+ RUN rm /etc/nginx/nginx.conf
3
3
COPY server.key /etc/nginx/ssl/private/server.key
4
4
COPY server.crt /etc/nginx/ssl/certs/server.crt
Original file line number Diff line number Diff line change @@ -38,7 +38,27 @@ http {
38
38
server_name localhost;
39
39
listen 80 default_server;
40
40
listen [::]:80 default_server;
41
+
42
+ # Comment the line below to disable HTTPS redirect and use HTTP directly
41
43
return 302 https://$host$request_uri;
44
+
45
+ # Uncomment these location blocks when you want to serve HTTP directly
46
+ # location @proxy_to_app {
47
+ # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
48
+ # proxy_set_header X-Forwarded-Proto http;
49
+ # proxy_set_header X-Real-IP $remote_addr;
50
+ # proxy_set_header Host $http_host;
51
+ # proxy_redirect off;
52
+ # proxy_pass http://app_server;
53
+ # }
54
+ #
55
+ # location /static/ {
56
+ # root /public/ ;
57
+ # }
58
+ #
59
+ # location / {
60
+ # try_files $uri $uri/ @proxy_to_app;
61
+ # }
42
62
}
43
63
44
64
server_tokens off;
You can’t perform that action at this time.
0 commit comments