-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
42 lines (40 loc) · 1019 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
42 lines (40 loc) · 1019 Bytes
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
services:
postgres-test:
image: postgres:18
container_name: planningsup_test_db
environment:
POSTGRES_USER: testuser
POSTGRES_PASSWORD: testpass
POSTGRES_DB: planningsup_test
ports:
- '5433:5432'
networks:
- planningsup_test_network
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U testuser -d planningsup_test']
interval: 5s
timeout: 5s
retries: 10
app-test:
build:
context: .
args:
BUN_VERSION: ${BUN_VERSION:-1.3.9}
container_name: planningsup_test_app
environment:
NODE_ENV: production
PUBLIC_ORIGIN: http://localhost:20000
PORT: 20000
DATABASE_URL: postgresql://testuser:testpass@postgres-test:5432/planningsup_test
RUN_JOBS: false
AUTH_ENABLED: 'false'
ports:
- '20000:20000'
depends_on:
postgres-test:
condition: service_healthy
networks:
- planningsup_test_network
networks:
planningsup_test_network:
driver: bridge