You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| backend/src | 2 years ago | |
| caddy | 3 years ago | |
| docker | 3 years ago | |
| frontend | 3 years ago | |
| .gitignore | 4 years ago | |
| README.md | 3 years ago | |
| geodata-catalog.code-workspace | 4 years ago | |
README.md
Requirements
Minimal versions
- python 3.7
- postgresql 12
Prepare
mkdir ./previewsdocker volume create --name=caddy_data- use current address in martin section of map components
Production
- add domain to Caddyfile
- generate new database password and put it into appropriate places in docker/docker-compose.yml
- generate new
SECRET_KEYwithopenssl rand -base64 32and put it into docker/docker-compose.yml geodata: and frontend: environment variables
Run
docker-compose --file docker/docker-compose.yml up --build -d
Known restrictions
- models.py, schema.py, and current representation of column headers in
headersdb table (as initialised by alembic migration script) must be kept in sync SQALCHEMY_DATABASE_URLin database.py andsqlalchemy.urlin alembic.ini must be kept in sync- martin requires a restart after the very first data is uploaded into an empty database
docker-compose --file docker/docker-compose.yml restart martin - ./previews directory file structure must correspond to item fadr/internal_id
Known issues
- older (not recommended) vesions of Docker might require copying Dockerfile.* into their respective directories and adjusting
dockerfile:instructions in docker/docker-compose.yml