docker-compose path mapping on Linux
I have this run configuration:

(I've read on the Jetbrains documentation somewhere that path mappings on Linux need to be done manually for now.)
With these path mappings:

This matches my docker-compose.yml
version: '3'
services:
# Main application
app:
restart: always
build:
context: ./containers/app/
args:
- SSH_PRIVATE_KEY
env_file:
- ./config/env/files/app.env
volumes:
- ./containers/app/bin/:/app/bin/
- ./containers/app/src/:/app/code/src/
- ./containers/app/config/:/app/config/
- ./containers/app/config/postfix/main.cf:/etc/postfix/main.cf
- ./.git/:/app/.git/
- ./logs/app/:/app/logs/
# the line below mounts the XXXX repository at /lib for development.
# this should be commented out on any environment except dev
- ./containers/app/lib/:/app/code/lib/
- app_data:/app/data/
depends_on:
- postgres
# Main database server
postgres:
build: ./containers/postgres/
restart: unless-stopped
env_file:
- ./config/env/files/postgres.env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
# Nginx -> app uwsgi
nginx:
build:
context: ./containers/nginx/
args:
- SSH_PRIVATE_KEY
restart: unless-stopped
env_file:
- ./config/env/files/nginx.env
ports:
- ${PORT}:80
volumes:
- ./containers/nginx/bin/:/app/bin/
- ./containers/nginx/config/:/app/config/
- ./logs/nginx/nginx/:/var/log/nginx/
- app_data:/srv/data
depends_on:
- app
volumes:
postgres_data:
app_data:
However, when I debug the configuration, I get this error:

What exactly "can't be found"? The remote or local path? The paths in the error message are mapped.
On PyCharm Pro 2020.2, Ubuntu 20.04 LTS
Please sign in to leave a comment.
I found the issue. Somewhere, one of the wizards created this environment variable:
It should just be `project.settings`