diff --git a/README.md b/README.md index 7ef8c6c..b07db13 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,41 @@ ## run migrations docker compose exec python alembic upgrade head + + +```yaml +services: + app: + hostname: mapmaker + image: git.shihaam.dev/sarlink/mapmaker/api + env_file: .env + volumes: + - ./storage/images:/var/www/html/storage/images + depends_on: + - postgres + + nginx: + hostname: mapmaker-nginx + image: git.shihaam.dev/sarlink/mapmaker/nginx + volumes_from: + - app + ports: + - 8000:80 + depends_on: + - app + + postgres: + image: postgis/postgis:15-3.3 + hostname: database + restart: always + environment: + POSTGRES_USER: mapmaker + POSTGRES_PASSWORD: mapmaker + POSTGRES_DB: mapmaker + volumes: + - ./storage/database:/var/lib/postgresql/data +# ports: +# - "5432:5432" +``` +## prod docker compose.yml +