-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 1.61 KB
/
docker-compose.yml
File metadata and controls
78 lines (74 loc) · 1.61 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
postgres:
build:
context: ..
dockerfile: postgres/Dockerfile
args:
POSTGRES_VERSION: 17.7
command: "-d 1"
# volumes:
# - postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=main
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 6s
timeout: 4s
retries: 8
postgres-ws-proxy:
build:
context: ..
dockerfile: postgres-ws-proxy/Dockerfile
environment:
APPEND_PORT: "postgres:5432"
ALLOW_ADDR_REGEX: ".*"
LISTEN_PORT: ":5433"
LOG_TRAFFIC: "true"
ports:
- "5433:5433"
depends_on:
postgres:
condition: service_healthy
links:
- postgres
test-runner:
profiles: ["e2e"]
build:
context: ..
dockerfile: tests/Dockerfile
args:
BUN_VERSION: 1.3.6
depends_on:
postgres:
condition: service_healthy
postgres-ws-proxy:
condition: service_started
links:
- postgres
- postgres-ws-proxy
environment:
NODE_ENV: test
cli-test-runner:
profiles: ["cli"]
build:
context: ..
dockerfile: tests/Dockerfile
args:
BUN_VERSION: 1.3.6
depends_on:
postgres:
condition: service_healthy
postgres-ws-proxy:
condition: service_started
links:
- postgres
- postgres-ws-proxy
environment:
NODE_ENV: test
command: ["bun", "test", "./src/tests/e2e/CliEnvFile.test.ts"]
volumes:
postgres-data: