[TC-221]: init template-backend-service (#1)
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>
This commit is contained in:
40
docker-compose.yml
Normal file
40
docker-compose.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
Reference in New Issue
Block a user