Update README.md

This commit is contained in:
Iuliia Volkova
2020-08-01 13:49:50 +03:00
committed by GitHub
parent 417fb9d6e1
commit b2f7d5504e

View File

@@ -51,14 +51,33 @@ And env file with config setting for Airflow (used in docker-compose-with-celery
2. Added test_dag into airflow_files
## For Windows 10 Users
If you try to work on Windows 10 & run docker-compose on it you will got an issue for **postgres** service:
-postgresql -d local
FATAL: data directory "/var/lib/postgresql/data/pgdata" has wrong ownership
2. in docker-compose.yml:
2.1 add volume at thetop of the file, under 'networks' defining like this:
To solve this issue you must do additional steps (unfortanutely there is no more quick workaround, check: https://forums.docker.com/t/data-directory-var-lib-postgresql-data-pgdata-has-wrong-ownership/17963/23 and https://forums.docker.com/t/trying-to-get-postgres-to-work-on-persistent-windows-mount-two-issues/12456/5?u=friism):
```
networks:
airflow:
1. Create docker volume:
volumes:
volume-postgresql:
external: true
```
docker volume create --name volume
2.2 change *postgres* service volumes:
was:
```
- ./database/data:/var/lib/postgresql/data/pgdata
- ./database/logs:/var/lib/postgresql/data/log
```
become:
```
- volume-postgresql:/var/lib/postgresql/data/pgdata
- volume-postgresql:/var/lib/postgresql/data/log
```
Or use WSL and run docker under it.