I have a very simple docker-compose.yml
file where I use nginx
and mounting a file as a volume.
But everytime I run the application, it is creating a directory .htpasswd
without really mounting the .htpasswd
file where I locally.
This is the docker-compose.yml
.
version: '3'
services:
reverse:
container_name: reverse
hostname: reverse
restart: unless-stopped
image: nginx
ports:
- 80:80
- 443:443
volumes:
- ./nginx/.htpasswd:/etc/nginx/conf.d/.htpasswd
Can someone help me fix this?