40 lines
945 B
YAML
40 lines
945 B
YAML
services:
|
|
frontend:
|
|
build: ./apps/frontend
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
depends_on:
|
|
- backend
|
|
|
|
backend:
|
|
build: ./apps/backend
|
|
ports:
|
|
- "1108:1108"
|
|
environment:
|
|
- NODE_ENV=production
|
|
depends_on:
|
|
- ferretdb
|
|
|
|
postgres:
|
|
image: ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
|
|
restart: always
|
|
|
|
environment:
|
|
- POSTGRES_USER=${POSTGRES_USER:-mizuki}
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-akiyama_mizuki_is_web_programmer}
|
|
- POSTGRES_DB=postgres
|
|
volumes:
|
|
- ./data:/var/lib/postgresql/data
|
|
|
|
ferretdb:
|
|
image: ghcr.io/ferretdb/ferretdb:2.7.0
|
|
restart: always
|
|
|
|
ports:
|
|
- 27017:27017
|
|
environment:
|
|
- FERRETDB_POSTGRESQL_URL=postgres://${POSTGRES_USER:-mizuki}:${POSTGRES_PASSWORD:-akiyama_mizuki_is_web_programmer}@postgres:5432/postgres
|
|
depends_on:
|
|
- postgres
|