-
Notifications
You must be signed in to change notification settings - Fork 286
/
docker-compose.yml
102 lines (94 loc) · 2.3 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.4"
services:
db:
image: postgres:16.1-alpine
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
image: "${PROJECT_NAME}/backend"
command: ["./scripts/runtime/run_local.sh"]
ports:
- "5001:5001"
depends_on:
stripemock:
condition: service_started
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
links:
- db
- redis
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
- AWS_DEFAULT_REGION=eu-west-1
stdin_open: true
tty: true
celery_beat:
image: '${PROJECT_NAME}/backend'
command: ["./scripts/runtime/run_celery_beat.sh"]
restart: always
depends_on:
backend:
condition: service_started
celery_default:
image: '${PROJECT_NAME}/backend'
command: ["./scripts/runtime/run_celery_worker_default.sh"]
restart: always
depends_on:
backend:
condition: service_started
workers:
build:
context: .
dockerfile: ./packages/workers/Dockerfile
depends_on:
db:
condition: service_healthy
links:
- db
redis:
image: redis:7.2.4-alpine
restart: always
ports:
- '6379:6379'
healthcheck:
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
interval: 10s
timeout: 5s
retries: 5
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:-}