Commit 468c60fe authored by Álax Alves's avatar Álax Alves

Adding apache and varnish compose services

parent 0e989101
......@@ -38,7 +38,7 @@ Install the RPAF apache module (or skip this step if not using apache):
On manual installations, change `/etc/noosfero/*` to `{Rails.root}/etc/noosfero/*`
**NOTE**: it is very important that the `*.vcl` files are included in that order, i.e. *first* include `varnish-noosfero.vcl`, and *after* `noosfero-accept-language.cvl`.
**NOTE**: it is very important that the `*.vcl` files are included in that order, i.e. *first* include `varnish-noosfero.vcl`, and *after* `noosfero-accept-language.vcl`.
5) Enable varnish logging:
......
version: "3"
services:
varnish:
container_name: varnish
build:
context: ./config/docker/prod/
dockerfile: ./Dockerfile-varnish
volumes:
- apache2:/etc/apache2/
command: ["service", "apache2", "restart"]
env_file:
- config/docker/prod/varnish-apache.env
depends_on:
- apache2
apache2:
container_name: apache2
build:
context: ./config/docker/prod/
dockerfile: ./Dockerfile-apache2
restart: always
env_file:
- config/docker/prod/varnish-apache.env
volumes:
- apache2:/etc/apache2/
postgres:
container_name: postgres
image: postgres:9.4
environment:
POSTGRES_USER: noosfero
......@@ -11,6 +37,7 @@ services:
- pg-prod-data:/var/lib/postgresql/data
noosfero:
container_name: noosfero
build:
context: .
dockerfile: ./config/docker/prod/Dockerfile
......@@ -37,3 +64,4 @@ services:
volumes:
pg-prod-data: {}
apache2:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment