claude rework
This commit is contained in:
+26
-2
@@ -1,4 +1,3 @@
|
||||
version: "3.7"
|
||||
services:
|
||||
postgres:
|
||||
container_name: "rss-postgres"
|
||||
@@ -8,9 +7,34 @@ services:
|
||||
environment:
|
||||
- "POSTGRES_USER=admin"
|
||||
- "POSTGRES_DB=rss"
|
||||
- "POSTGRES_PASSWORD=secret+123"
|
||||
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
|
||||
backend:
|
||||
container_name: "rss-backend"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- postgres
|
||||
environment:
|
||||
- "DATABASE_URL=postgres://admin:${POSTGRES_PASSWORD}@postgres/rss"
|
||||
- "JWT_SECRET=${JWT_SECRET}"
|
||||
- "FRONTEND_ORIGIN=${FRONTEND_ORIGIN}"
|
||||
- "RUST_LOG=${RUST_LOG}"
|
||||
ports:
|
||||
- "0.0.0.0:8001:8001"
|
||||
|
||||
frontend:
|
||||
container_name: "rss-frontend"
|
||||
build:
|
||||
context: ./vue
|
||||
dockerfile: Dockerfile
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "0.0.0.0:8080:80"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user