https://eva.avroid.tech/desk/cards?obj=Task:TC-221 Начальная версия сервиса-шаблона Co-authored-by: Nadezhda <nadezhda.lavrentieva@avroid.team> Reviewed-on: https://git.avroid.tech/Templates/template-backend-service/pulls/1 Reviewed-by: Victor Stratov <victor.stratov@avroid.tech>
41 lines
994 B
YAML
41 lines
994 B
YAML
volumes:
|
|
postgresql: {}
|
|
|
|
services:
|
|
template-backend-service:
|
|
build: .
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./:/app
|
|
environment:
|
|
POSTGRES_DSN: "postgresql://test:test@cloud-postgres.avroid.cloud:5432/messenger"
|
|
POSTGRES_USER: "test"
|
|
POSTGRES_PASSWORD: "test"
|
|
POSTGRES_HOST: "cloud-postgres.avroid.cloud"
|
|
POSTGRES_DB: "messenger"
|
|
|
|
PORT: "8000"
|
|
|
|
SCYLLADB_HOST: "cloud-scylla.avroid.cloud"
|
|
SCYLLADB_PORT: "9042"
|
|
SCYLLADB_USER: "test"
|
|
SCYLLADB_PASSWORD: "test"
|
|
SCYLLADB_KEYSPACE: "messenger"
|
|
LOGGING: '{"json_enabled": true, "level": "INFO"}'
|
|
ENVIRONMENT: "production"
|
|
depends_on:
|
|
- db
|
|
db:
|
|
image: postgres:14.8
|
|
restart: always
|
|
environment:
|
|
POSTGRES_USER: "test"
|
|
POSTGRES_PASSWORD: "test"
|
|
POSTGRES_HOST: "cloud-postgres.avroid.cloud"
|
|
POSTGRES_DB: "messenger"
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgresql:/var/lib/postgresql/data
|