forked from OP-TED/entity-resolution-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
55 lines (52 loc) · 1.38 KB
/
compose.yaml
File metadata and controls
55 lines (52 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
api:
build:
context: .
dockerfile: deployment/docker/Dockerfile
ports:
- "${UVICORN_PORT:-8000}:8000"
env_file:
- .env
environment:
- PYTHONDONTWRITEBYTECODE=1
- PYTHONUNBUFFERED=1
- MONGO_URI=mongodb://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@ferretdb:27017
- MONGO_DATABASE_NAME=${MONGO_DATABASE_NAME:-ers}
restart: unless-stopped
depends_on:
- ferretdb
develop:
watch:
- action: sync
path: ./src
target: /app/src
- action: rebuild
path: ./pyproject.toml
- action: rebuild
path: ./poetry.lock
networks:
- local
postgres:
image: ghcr.io/ferretdb/postgres-documentdb:17-0.107.0-ferretdb-2.7.0
restart: on-failure
environment:
- POSTGRES_USER=${POSTGRES_USER:-username}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-password}
- POSTGRES_DB=${POSTGRES_DB:-postgres}
volumes:
- ./data:/var/lib/postgresql/data
networks:
- local
ferretdb:
image: ghcr.io/ferretdb/ferretdb:2.7.0
restart: on-failure
ports:
- "27017:27017"
environment:
- FERRETDB_POSTGRESQL_URL=postgres://${POSTGRES_USER:-username}:${POSTGRES_PASSWORD:-password}@postgres:5432/${POSTGRES_DB:-postgres}
depends_on:
- postgres
networks:
- local
networks:
local: