saleor-apps-redis_apl/docker-compose.search.prod.yml
Lukasz Ostrowski 7240f6efa7 Add docker, prisma and worker POC
Add docker-compose with Postgres

Install Prisma and generate empty schema

Install Prisma client

Add app config model and migration

Add repository for Algolia Configuration

Migrate metadata to postgres

Replace webhooks metadata with PRisma

Add worker and skeleton code

Implement worker job and removed from the frontend

Attempt to display jobs list

Worker utils

Run worker in the same thread on dev

Run worker in the same thread on dev

Build scripts

fix dev mode

Dockerfiles

prod dockerfiles

docker wip

docker wip

wip working docker

wip working docker

wip - working without prisma migrate
2023-06-07 11:07:37 +02:00

57 lines
No EOL
1.5 KiB
YAML

version: '3'
services:
postgres:
container_name: search_app_postgres
image: postgres # Todo maybe some alpine image?
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
restart: unless-stopped
networks:
- saleor-app-search
saleor-app-search:
container_name: saleor-app-search
depends_on:
- postgres
build:
context: .
dockerfile: apps/search/app.prod.Dockerfile
args:
DATABASE_URL: "postgres://postgres:postgres@postgres/postgres"
environment:
APP_DEBUG: "info"
DATABASE_URL: "postgres://postgres:postgres@postgres/postgres"
restart: always
# command: TODO
# - npx prisma migrate deploy
# - node apps/search/server.js
# entrypoint: ["/bin/bash", "./apps/search/run-app.sh"]
ports:
- 3000:3000
networks:
- saleor-app-search
# saleor-app-search-worker:
# container_name: saleor-app-search-worker
# depends_on:
# - postgres
# build:
# context: . # In examples its ./next-app, we can do that too todo
# dockerfile: worker.prod.Dockerfile
# environment:
# DATABASE_URL: "postgres://postgres:postgres@postgres/postgres"
# restart: always
# networks:
# - saleor-app-search
volumes:
postgres:
networks:
saleor-app-search:
driver: bridge