Add proxy container back

This commit is contained in:
Cyril Rohr
2020-01-30 14:51:25 +00:00
parent f84e750548
commit 66e7272173
2 changed files with 15 additions and 3 deletions
+14 -3
View File
@@ -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
+1
View File
@@ -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