сборки docker:24.0.5-cli-alpine3.18
                  
                  
                  docker-compose:
                  
                  
                  version: "3.9"
                  
                  
                  
                  
                  
                  services:
                  
                  
                    taiga:
                  
                  
                      image: nginx:1-alpine
                  
                  
                      volumes:
                  
                  
                        - ./taiga/taiga.conf:/etc/nginx/conf.d/default.conf
                  
                  
                        - ./static:/taiga/static
                  
                  
                        - ./media:/taiga/media
                  
                  
                      env_file: .env
                  
                  
                      depends_on:
                  
                  
                        - frontend
                  
                  
                        - backend
                  
                  
                        - events
                  
                  
                      networks:
                  
                  
                        - local
                  
                  
                      restart: unless-stopped
                  
                  
                  
                  
                  
                  Но вечно упираюсь в ошибку, что докер ждёт диру, а не файл:
                  
                  
                  Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/builds/root/calculate-taiga/taiga.conf" to rootfs at "/etc/nginx/conf.d/default.conf": mount /builds/root/calculate-taiga/taiga.conf:/etc/nginx/conf.d/default.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
                  
                  
                  
                  
                  
                  в чем прикол? уже создал и свежий раннер, но нифига. А руками работает
                  
                  
                
Check if the specified host path
Обсуждают сегодня