-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
36 lines (32 loc) · 879 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
36 lines (32 loc) · 879 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
# Test profile: docker compose -f docker-compose.yml -f docker-compose.test.yml up
services:
postgres:
environment:
POSTGRES_DB: bulk_email_test
server:
build:
context: ./server
dockerfile: Dockerfile.dev
environment:
NODE_ENV: test
DATABASE_URL: postgresql://${POSTGRES_USER:-bulk_email_user}:${POSTGRES_PASSWORD:-changeme}@postgres:5432/bulk_email_test
REDIS_URL: redis://redis:6379
JWT_SECRET: test-jwt-secret
JWT_REFRESH_SECRET: test-refresh-secret
ADMIN_USERNAME: admin
ADMIN_PASSWORD: testpass
command: >
sh -c "
npx node-pg-migrate up --migration-file-language ts --migrations-dir src/db/migrations &&
npm test
"
env_file: []
worker:
profiles:
- test-worker
client:
profiles:
- test-client
nginx:
profiles:
- test-nginx