I have this simple docker-compose.yaml (image from danielemaddaluno/self-service-password):
version: "3"
services:
ltb:
image: danielemaddaluno/self-service-password
ports:
- 8080:80
volumes:
- ./conf:/var/www/html/conf/
The current behaviour is that:
- if the
./confdoesn't exist, it is created on the host - and the empty content is mounted in the container at
/var/www/html/conf/
The behaviour that I wanted it's that:
- if the
./confdoesn't exist, it is created on the host - and the content is firstly loaded from container's
/var/www/html/conf/(to the newly created./confhost's folder)
Is this possible with docker compose?