-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.35 KB
/
docker-compose.yml
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
version: "3"
services:
payment-service:
build:
context: .
args:
NODE_VERSION: ${NODE_VERSION:-18.17.0}
NODE_VERSION_SHORT: ${NODE_VERSION_SHORT:-18}
environment:
NODE_ENV: ${NODE_ENV:-test}
DB_HOST: payment-service-pg
DB_PORT: 5432
DB_PASSWORD: postgres
PORT: ${PORT:-3000}
DISABLE_LOGS: ${DISABLE_LOGS:-false}
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY}
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET}
MIGRATE_ON_STARTUP: ${MIGRATE_ON_STARTUP:-}
ports:
- "${PORT:-3000}:${PORT:-3000}"
depends_on:
- payment-service-pg
payment-service-pg:
image: postgres:13.8
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
volumes:
- payment-service-data:/var/lib/postgresql/data
test-runner:
build:
context: .
dockerfile: tests/Dockerfile.integration
args:
NODE_VERSION: ${NODE_VERSION:-18.17.0}
environment:
DB_HOST: payment-service-pg
DB_PASSWORD: postgres
DB_PORT: 5432
PORT: ${PORT:-1235}
NODE_ENV: ${NODE_ENV:-test}
STRIPE_SECRET_KEY: ${STRIPE_SECRET_KEY:-test}
STRIPE_WEBHOOK_SECRET: ${STRIPE_WEBHOOK_SECRET:-test}
depends_on:
- payment-service-pg
volumes:
payment-service-data: