-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (31 loc) · 922 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (31 loc) · 922 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
services:
cpsc-backend-api:
build:
context: .
dockerfile: Dockerfile
container_name: cpsc-backend-api
ports:
- "9090:8080"
environment:
# AWS Configuration - use your actual values or AWS credentials
AWS_REGION: ${AWS_REGION:-us-east-1}
AWS_SECRET_NAME: ${AWS_SECRET_NAME:-cpsc-backend/cognito}
# Spring Boot Configuration
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-default}
# JVM Options
JAVA_OPTS: "-Xmx512m -Xms256m"
volumes:
# Mount AWS credentials file from host
- ${USERPROFILE}\.aws:/home/appuser/.aws:ro
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/hello"]
interval: 30s
timeout: 3s
retries: 3
start_period: 40s
networks:
- cpsc-network
restart: unless-stopped
networks:
cpsc-network:
driver: bridge