51 lines
939 B
YAML
51 lines
939 B
YAML
name: server-pre
|
|
|
|
services:
|
|
|
|
postgres:
|
|
image: postgres:17
|
|
environment:
|
|
POSTGRES_USER: ${DB_USERNAME}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_NAME}
|
|
ports:
|
|
- "5434:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7.4
|
|
restart: always
|
|
ports:
|
|
- "6380:6379"
|
|
|
|
platform:
|
|
build:
|
|
context: ../../..
|
|
dockerfile: Dockerfile
|
|
environment:
|
|
- RUN_MODE=production
|
|
- DB_PORT=5434
|
|
- REDIS_PORT=6380
|
|
ports:
|
|
- "8081:8080"
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
|
|
vector:
|
|
image: timberio/vector:0.47.0-alpine
|
|
volumes:
|
|
- ./vector/vector.toml:/etc/vector/vector.toml
|
|
- vector_data:/var/lib/vector
|
|
ports:
|
|
- "9000:9000"
|
|
command: ["vector", "-c", "/etc/vector/vector.toml"]
|
|
depends_on:
|
|
- postgres
|
|
- platform
|
|
|
|
volumes:
|
|
postgres_data:
|
|
vector_data:
|