Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker-grav with proxy #4

Open
SnuppeDeluxe opened this issue Oct 19, 2018 · 4 comments
Open

Docker-grav with proxy #4

SnuppeDeluxe opened this issue Oct 19, 2018 · 4 comments
Labels
question Further information is requested

Comments

@SnuppeDeluxe
Copy link

SnuppeDeluxe commented Oct 19, 2018

Hi,
I tried your container in a standalone machine. It worked great and I wont to use it in production.
But my production system is behind a proxy (https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion) and every system is managed by this proxy.
Now I tried to generate a docker-compose file, to use your image with the proxy, but I don't have any rights for the connection.

Forbidden
You don't have permission to access / on this server.
Apache/2.4.25 (Debian) Server at *myURL Port 80

Please, help me. Where is my mistake?


version: '3'

services:
grav:
image: 'grav:latest'
volumes:
- ./data:/var/www/html
environment:
VIRTUAL_HOST: *myURL
LETSENCRYPT_HOST: *myURL
LETSENCRYPT_EMAIL: MAIL@PROVIDER
restart: always

networks:
default:
external:
name: webproxy

@boTux
Copy link

boTux commented Oct 25, 2018

Hi,

It's because you used a volume for /var/www/html in your docker-compose.yml

volumes:
  - ./data:/var/www/html

And for now if you bind a volume you have to install grav manually inside your container.

Checkout #5 where I'm trying to solve this.

Thanks,

@holdenrehg
Copy link

+1 to merge @boTux

Worked well for me, was able to mount a volume via docker-compose.yml properly. Without having the mount override the directory after the container starts up.

@SimJoSt
Copy link
Contributor

SimJoSt commented Jul 27, 2019

Most of the time you will only need the user, backup and logs directories outside of your container. I recommend volumes for those three instead of the whole system.

@rhukster rhukster added the question Further information is requested label Mar 4, 2020
@gushmazuko
Copy link

You can use Traefik instead of NGINX proxy. It's more perfulll, simple and nativerly supported by docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants