Hi,
I am using the following docker-compose.yaml
to deploy my app, but could not figure out how to mount a volume for storing the uploaded files, because when checking the release folder i see ./lib/my-app-0.1.0/priv/static/uploads
, any time the app version changes the path changes.
How to deal with this situation? or is there a better way?
Please help
version: '3.6'
services:
db:
image: "postgres:15-alpine"
restart: always
environment:
POSTGRES_USER: xxx
POSTGRES_PASSWORD: yyy
volumes:
- "~/.pgdata:/var/lib/postgresql/data"
ports:
- "5432:5432"
app:
build:
context: .
ports:
- 4000:4000
depends_on:
- db
restart: always
environment:
DATABASE_URL: "ecto://xxxxx"
SECRET_KEY_BASE: "5hxxxxni"