- Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
Latest commit
81 lines (75 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (75 loc) · 2.09 KB
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
version: "3.9"
services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_DB: securetask
POSTGRES_USER: securetask_user
POSTGRES_PASSWORD: securetask_password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U securetask_user -d securetask"]
interval: 5s
timeout: 5s
retries: 10
localstack:
image: localstack/localstack:3.4
restart: unless-stopped
environment:
SERVICES: secretsmanager,s3
DEFAULT_REGION: us-east-1
AWS_DEFAULT_REGION: us-east-1
LOCALSTACK_VOLUME_DIR: /var/lib/localstack
ports:
- "4566:4566"
volumes:
- ./localstack/init:/etc/localstack/init/ready.d
- localstack_data:/var/lib/localstack
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:4566/_localstack/health | grep -q 'running'"]
interval: 5s
timeout: 5s
retries: 20
app:
build:
context: .
dockerfile: api/Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
localstack:
condition: service_healthy
ports:
- "8080:8080"
- "5005:5005"# JDWP debug port for API
environment:
SPRING_PROFILES_ACTIVE: local
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
SECRETS_MANAGER_ENDPOINT: http://localstack:4566
S3_ENDPOINT: http://localstack:4566
DB_SECRET_NAME: securetask/db-docker
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005"
bff:
build:
context: .
dockerfile: bff/Dockerfile
restart: unless-stopped
depends_on:
app:
condition: service_started
ports:
- "8082:8081"
- "5006:5006"# JDWP debug port for BFF
environment:
API_BASE_URL: http://app:8080
JAVA_TOOL_OPTIONS: "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5006"
volumes:
postgres_data:
localstack_data: