Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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: vaportw
networks:
- p-stream-network

p-stream-backend:
image: ghcr.io/p-stream/backend:latest
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: 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"
# 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: "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: "https://lambent-duckanoo-449d21.netlify.app/"
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