
controllers, repositories, services and associated tests for: Deed types, Deed, Document types, Users and Customers --------- Co-authored-by: Vincent Alamelle <vincent.alamelle@smart-chain.fr> Co-authored-by: OxSaitama <arnaud.daubernatali@smart-chain.fr>
50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
volumes:
|
|
db_storage:
|
|
|
|
services:
|
|
front-end:
|
|
image: "le-coffre-front"
|
|
ports:
|
|
- 3000:${FRONT_PORT}
|
|
environment:
|
|
- FRONT_PORT
|
|
backend:
|
|
image: "le-coffre-back"
|
|
ports:
|
|
- 3001:${APP_PORT}
|
|
environment:
|
|
- DATABASE_HOSTNAME
|
|
- DATABASE_PORT
|
|
- DATABASE_USER
|
|
- DATABASE_PASSWORD
|
|
- DATABASE_NAME
|
|
- APP_LABEL
|
|
- APP_PORT
|
|
- APP_ROOT_URL
|
|
- API_ROOT_URL
|
|
- DEV_PRISMA_STUDIO_DB_URL
|
|
|
|
postgres:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
- DATABASE_HOSTNAME
|
|
- DATABASE_PORT
|
|
- DATABASE_USER
|
|
- DATABASE_PASSWORD
|
|
- DATABASE_NAME
|
|
- POSTGRES_PASSWORD
|
|
ports:
|
|
- ${DATABASE_PORT}:5432
|
|
volumes:
|
|
- db_storage:/var/lib/postgresql/data
|
|
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -h localhost -U ${DATABASE_USER} -d ${DATABASE_NAME}"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|