Update selfhost.mdx

This commit is contained in:
dumbutdumber 2025-09-28 14:46:44 +05:30 committed by GitHub
parent 4530257ef5
commit ab088f6aff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,40 +14,29 @@
Create a new file named `docker-compose.yml` in your project directory and paste the following content into it: Create a new file named `docker-compose.yml` in your project directory and paste the following content into it:
```yaml ```yaml
version: '3.8' services:
postgres:
services: image: postgres
postgres: environment:
image: postgres POSTGRES_USER: pstream_user
restart: unless-stopped POSTGRES_DB: pstream
environment: POSTGRES_PASSWORD: YourPasswordHere
POSTGRES_USER: movie_web_user ports:
POSTGRES_DB: movie_web_backend - "5432:5432"
POSTGRES_PASSWORD: YourPasswordHere networks:
networks: - p-stream-network
- p-stream-network p-stream:
image: ghcr.io/dumbutdumber/backend:latest
p-stream-backend: environment:
image: ghcr.io/p-stream/backend:latest DATABASE_URL: postgresql://pstream_user:YourPasswordHere@postgres:5432/pstream
restart: unless-stopped CRYPTO_SECRET: 32CharacterLongStringHere
environment: META_NAME: unofficial-backend
MWB_SERVER__CORS: "https://movie-backend.example.tld https://movie.example.tld" ports:
MWB_SERVER__PORT: 8080 - "80:80"
MWB_POSTGRES__CONNECTION: postgresql://movie_web_user:YourPasswordHere@postgres:5432/movie_web_backend depends_on:
MWB_CRYPTO__SESSION_SECRET: 32CHARACTERLONGSECRET - postgres
MWB_META__NAME: Server name networks:
MWB_META__DESCRIPTION: Server Description - p-stream-network
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: p-stream-frontend:
build: build: