mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Add proxy container back
This commit is contained in:
+14
-3
@@ -12,7 +12,7 @@ x-op-restart-policy: &restart_policy
|
||||
restart: unless-stopped
|
||||
x-op-image: &image
|
||||
build: .
|
||||
image: openproject/community:10
|
||||
image: openproject/community:${TAG:-10-test}
|
||||
x-op-app: &app
|
||||
<<: *image
|
||||
<<: *restart_policy
|
||||
@@ -47,11 +47,22 @@ services:
|
||||
networks:
|
||||
- backend
|
||||
|
||||
proxy:
|
||||
<<: *image
|
||||
<<: *restart_policy
|
||||
command: "./docker/proxy"
|
||||
ports:
|
||||
- "8080:80"
|
||||
environment:
|
||||
- APP_HOST=web
|
||||
depends_on:
|
||||
- web
|
||||
networks:
|
||||
- frontend
|
||||
|
||||
web:
|
||||
<<: *app
|
||||
command: "./docker/web"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
networks:
|
||||
- frontend
|
||||
- backend
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
DocumentRoot <%= ENV.fetch('APP_PATH') %>/public
|
||||
|
||||
ProxyRequests off
|
||||
ProxyPreserveHost On
|
||||
|
||||
<Location />
|
||||
ProxyPass http://<%= ENV.fetch("APP_HOST", "127.0.0.1") %>:8080/ retry=0
|
||||
|
||||
Reference in New Issue
Block a user