I just started working with docker and am quite enthusiastic so far! At the moment, I am trying to build an extremely basic and extendable file that just serves basic static websites. I figured that this shouldn't be so difficult, but I have the following problem:
The following docker-compose.yml file still shows the default nginx index.html file, I expected that this would be overwritten by my project folder ./code. Can I overwrite all files in /usr/share/nginx/html without adding a separate Dockerfile? I am trying to keep this configuration as minimal as possible.
version: '2'
services:
web:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./code:/usr/share/nginx/html
// Whenever needed php/python/dababase services can be added here
./codeand see if that resolves it.