From aeb2e441926c18204515817a344236587f6f9085 Mon Sep 17 00:00:00 2001 From: lordOsirisx <160320775+lordOsirisx@users.noreply.github.com> Date: Wed, 28 May 2025 21:51:04 -0400 Subject: [PATCH 1/2] Create docker-compose.yml --- docker-compose.yml | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9e64c37 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,64 @@ +version: '3.8' + +services: + postgres: + image: postgres + restart: unless-stopped + environment: + POSTGRES_USER: movie_web_user + POSTGRES_DB: movie_web_backend + POSTGRES_PASSWORD: YourPasswordHere + networks: + - p-stream-network + + p-stream-backend: + image: ghcr.io/p-stream/backend:latest + restart: unless-stopped + environment: + MWB_SERVER__CORS: "https://movie-backend.example.tld https://movie.example.tld" + MWB_SERVER__PORT: 8080 + MWB_POSTGRES__CONNECTION: postgresql://movie_web_user:YourPasswordHere@postgres:5432/movie_web_backend + MWB_CRYPTO__SESSION_SECRET: 32CHARACTERLONGSECRET + MWB_META__NAME: Server name + MWB_META__DESCRIPTION: Server Description + MWB_POSTGRES__MIGRATE_ON_BOOT: "true" + MWB_SERVER__TRUSTPROXY: "true" + MWB_SERVER__TRUSTCLOUDFLARE: "true" + # This is needed to resolve errors running migrations on some platforms - does not affect the application + MIKRO_ORM_MIGRATIONS_DISABLE_FOREIGN_KEYS: "false" + ports: + - "8080:8080" + depends_on: + - postgres + networks: + - p-stream-network + + p-stream-frontend: + build: + context: https://github.com/p-stream/p-stream.git + args: + TMDB_READ_API_KEY: "YourTMDBReadAPIKeyHere" + CORS_PROXY_URL: "https://cors.example.tld https://second.cors.example.tld" + BACKEND_URL: "https://backend.example.tld" + DMCA_EMAIL: "YourEmail" + PWA_ENABLED: "true" + APP_DOMAIN: "YourDomainHere" + OPENSEARCH_ENABLED: "true" + GA_ID: "Google ID Here" + ports: + - "80:80" + networks: + - p-stream-network + restart: unless-stopped + + p-stream-proxy: + image: ghcr.io/p-stream/simple-proxy:latest + ports: + - "3000:3000" + networks: + - p-stream-network + restart: unless-stopped + +networks: + p-stream-network: + driver: bridge From c50894226dc3b204a1f45fe60e7afbbf2c4c0816 Mon Sep 17 00:00:00 2001 From: lordOsirisx <160320775+lordOsirisx@users.noreply.github.com> Date: Wed, 28 May 2025 22:26:44 -0400 Subject: [PATCH 2/2] Update docker-compose.yml --- docker-compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9e64c37..a64cc64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,20 +7,20 @@ services: environment: POSTGRES_USER: movie_web_user POSTGRES_DB: movie_web_backend - POSTGRES_PASSWORD: YourPasswordHere + POSTGRES_PASSWORD: vaportw networks: - p-stream-network p-stream-backend: image: ghcr.io/p-stream/backend:latest - restart: unless-stopped + restart: unless-stopped4 environment: MWB_SERVER__CORS: "https://movie-backend.example.tld https://movie.example.tld" MWB_SERVER__PORT: 8080 MWB_POSTGRES__CONNECTION: postgresql://movie_web_user:YourPasswordHere@postgres:5432/movie_web_backend - MWB_CRYPTO__SESSION_SECRET: 32CHARACTERLONGSECRET - MWB_META__NAME: Server name - MWB_META__DESCRIPTION: Server Description + MWB_CRYPTO__SESSION_SECRET: B*-+0A1F0W1T8018934:/1-`'shc931s + MWB_META__NAME: Tenjis movie den + MWB_META__DESCRIPTION: ohh yeah MWB_POSTGRES__MIGRATE_ON_BOOT: "true" MWB_SERVER__TRUSTPROXY: "true" MWB_SERVER__TRUSTCLOUDFLARE: "true" @@ -37,12 +37,12 @@ services: build: context: https://github.com/p-stream/p-stream.git args: - TMDB_READ_API_KEY: "YourTMDBReadAPIKeyHere" + TMDB_READ_API_KEY: "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI3ZDg0ZDNjZDNiYmE0MTk1ZTZiNDI1YmQ0OTA0MWYyMCIsIm5iZiI6MTc0ODQ4NDg2Mi4yOCwic3ViIjoiNjgzN2MyZmU4YWRjNTIzMDFmYjZjNjYyIiwic2NvcGVzIjpbImFwaV9yZWFkIl0sInZlcnNpb24iOjF9.zpx93Ox4ijgUSooIW1wb1F7EmmDxBivh5LELtsWtgrw" CORS_PROXY_URL: "https://cors.example.tld https://second.cors.example.tld" BACKEND_URL: "https://backend.example.tld" DMCA_EMAIL: "YourEmail" PWA_ENABLED: "true" - APP_DOMAIN: "YourDomainHere" + APP_DOMAIN: "https://lambent-duckanoo-449d21.netlify.app/" OPENSEARCH_ENABLED: "true" GA_ID: "Google ID Here" ports: