-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.12 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
services:
postgres:
build:
context: .
dockerfile: e2e/Dockerfile.postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
ports:
- "5432:5432"
volumes:
- finlex-db-data:/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d testdb"]
interval: 1s
timeout: 5s
retries: 20
start_period: 10s
typesense:
build:
context: .
dockerfile: e2e/Dockerfile.typesense
environment:
TYPESENSE_API_KEY: xyz
TYPESENSE_DATA_DIR: /tmp
ports:
- "8108:8108"
app:
build:
context: .
dockerfile: e2e/Dockerfile.app
environment:
PG_URI: postgresql://postgres:postgres@postgres:5432/testdb
TYPESENSE_HOST: typesense
TYPESENSE_PORT: 8108
TYPESENSE_API_KEY: xyz
START_YEAR: 2024
NODE_ENV: production
ADMIN_PASSWORD: finlex
JWT_SECRET: test-key
ports:
- "3001:3001"
depends_on:
postgres:
condition: service_healthy
typesense:
condition: service_started
volumes:
finlex-db-data: