forked from apptension/saas-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (66 loc) · 1.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: "3.4"
services:
db:
image: postgres:13.7
ports:
- "5432:5432"
restart: unless-stopped
environment:
- PGUSER=backend
- POSTGRES_USER=backend
- POSTGRES_PASSWORD=backend
- POSTGRES_DB=backend
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./packages/backend
target: backend
command: ["./scripts/runtime/run_local.sh"]
ports:
- "5001:5001"
depends_on:
stripemock:
condition: service_started
db:
condition: service_healthy
restart: unless-stopped
links:
- db
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
- AWS_DEFAULT_REGION=eu-west-1
stdin_open: true
tty: true
workers:
build:
context: .
dockerfile: ./packages/workers/Dockerfile
depends_on:
db:
condition: service_healthy
links:
- db
stripemock:
image: stripe/stripe-mock:v0.170.0
ports:
- "12111:12111"
- "12112:12112"
ssm-editor:
stdin_open: true
tty: true
build:
context: ./packages/internal/ssm-editor
environment:
- PROJECT_NAME=${PROJECT_NAME:-}
- ENV_STAGE=${ENV_STAGE:-}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY:-}
- AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-}
- AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:-}
- AWS_SECURITY_TOKEN=${AWS_SECURITY_TOKEN:-}
- AWS_SESSION_EXPIRATION=${AWS_SESSION_EXPIRATION:-}