setup features
This commit is contained in:
@@ -1,42 +1,35 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: postgres:15
|
||||
image: linuxserver/mariadb
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: whats_the_point
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: whats_the_point
|
||||
TZ: America/Toronto
|
||||
volumes:
|
||||
- db_data:/var/lib/postgresql/data
|
||||
- db_data:/config
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "3306:3306"
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
web:
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PORT: 4000
|
||||
JWT_SECRET: your_jwt_secret
|
||||
DATABASE_URL: postgres://postgres:postgres@db:5432/whats_the_point
|
||||
JWT_SECRET: dev_jwt_secret_change_in_production
|
||||
DB_HOST: db
|
||||
DB_USER: root
|
||||
DB_PASSWORD: rootpassword
|
||||
DB_NAME: whats_the_point
|
||||
TMDB_API_KEY: your_tmdb_api_key_here
|
||||
depends_on:
|
||||
- db
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
VITE_API_URL: http://localhost:4000
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "5173:5173"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- /app/node_modules
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
|
||||
Reference in New Issue
Block a user