-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 960 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 960 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
33
34
35
36
37
services:
queue-service:
build:
context: .
dockerfile: Dockerfile
args:
GITHUB_USER: ${GITHUB_USER}
secrets:
- github_token
image: queue-service:latest
container_name: queue-service
ports:
- "8085:8080"
environment:
SPRING_PROFILES_ACTIVE: ${SPRING_PROFILES_ACTIVE:-prod}
CONFIG_SERVER_USERNAME: ${CONFIG_SERVER_USERNAME}
CONFIG_SERVER_PASSWORD: ${CONFIG_SERVER_PASSWORD}
EUREKA_SERVER_URL: ${EUREKA_SERVER_URL:-eureka-server}
JAVA_OPTS: "-XX:MaxRAMPercentage=75.0 -XX:+UseG1GC"
networks:
- first-ticket-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/actuator/health"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
restart: unless-stopped
secrets:
github_token:
environment: GITHUB_TOKEN
networks:
first-ticket-network:
external: true
name: first-ticket-network