muzick: nginx proxy Bearer auth, restart policies, env subst
This commit is contained in:
+8
-3
@@ -16,15 +16,16 @@ services:
|
||||
image: typesense/typesense:0.25.1
|
||||
restart: always
|
||||
ports:
|
||||
- "8108:8108"
|
||||
- "127.0.0.1:8108:8108"
|
||||
volumes:
|
||||
- ./data/typesense:/data
|
||||
command: --data-dir /data --api-key=${TYPESENSE_API_KEY}
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "127.0.0.1:3000:3000"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://user:${DB_PASSWORD}@db:5432/muzick
|
||||
REDIS_URL: redis://:${REDIS_PASSWORD}@infra-redis:6379
|
||||
@@ -43,13 +44,17 @@ services:
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5174:80"
|
||||
- "127.0.0.1:5174:80"
|
||||
environment:
|
||||
MUZICK_API_KEY: ${MUZICK_API_KEY}
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
worker:
|
||||
build: ./workers
|
||||
restart: unless-stopped
|
||||
network_mode: host
|
||||
environment:
|
||||
DATABASE_URL: postgresql://user:${DB_PASSWORD}@127.0.0.1:5432/muzick
|
||||
|
||||
Reference in New Issue
Block a user